https://github.com/lacrypta/redirect
Simple redirects to website
https://github.com/lacrypta/redirect
crypto forwarding lacrypta links redirect subdomain vite
Last synced: 3 months ago
JSON representation
Simple redirects to website
- Host: GitHub
- URL: https://github.com/lacrypta/redirect
- Owner: lacrypta
- License: mit
- Created: 2023-02-10T14:45:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-19T17:58:47.000Z (almost 2 years ago)
- Last Synced: 2025-01-22T15:30:40.889Z (5 months ago)
- Topics: crypto, forwarding, lacrypta, links, redirect, subdomain, vite
- Language: TypeScript
- Homepage: https://links.lacrypta.com.ar
- Size: 42 KB
- Stars: 1
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
Setup in a couple of minutes a link tracking system with **Google Analytics**.
### Features
- [x] Vite
- [x] Custom Title
- [x] Analytics
- [x] Netlify Button
- [x] Vercel Button
- [x] Subdomains
- [ ] Loading animation---
## Fast Easy Way _(No updates)_
- Create a **Google Analytics** account
- Setup on **Netlify** or **Vercel** _(Auto deploy button below)_
- Set the proper environment variables
- Edit subdomains file in your repo _(Optional)_#### Auto Deploy on Netlify or Vercel
[](https://app.netlify.com/start/deploy?repository=https://github.com/lacrypta/redirect)
or
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Flacrypta%2Fredirect&env=VITE_TITLE,VITE_DESTINATION,VITE_GOOGLE_ANALYTICS&envDescription=HTML%20Title%20while%20loading%20and%20Destination%20URL&project-name=redirect&repository-name=redirect)
## Best Way (Fork)
- For this repo
- Edit local [src/config/subdomains.json](src/config/subdomains.json)
- Import it into **Vercel** or **Netlify**.---
### Environment variables
```bash
VITE_TITLE="La Crypta - Redirecting..."
VITE_DESTINATION="http://lacrypta.com.ar"
VITE_GOOGLE_ANALYTICS="G-0000000000"
```Deploy it and assign a subdomain.
### Config Subdomains (optional)
Edit local [src/config/subdomains.json](src/config/subdomains.json)
Those links are being redirected by this tool.> **Demo:** https://twitter.lacrypta.com.ar
```json
{
"twitter": "https://twitter.com/LaCryptaOficial",
"instagram": "https://www.instagram.com/lacryptaok/",
"discord": "https://discord.com/invite/SN8JNhMgvY",
"github": "https://github.com/lacrypta"
}
```Then add those subdomains on your **Netlify** or **Vercel** Dashboard.
If the subdomain is not found in the config it automatically fallback to the url provided in **VITE_DESTINATION**.