Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lu2000luk/redirector
A dynamic redirector that uses Vercel KV DB and Svelte Kit
https://github.com/lu2000luk/redirector
kv-store redirect redirector redis svelte sveltekit vercel
Last synced: 7 days ago
JSON representation
A dynamic redirector that uses Vercel KV DB and Svelte Kit
- Host: GitHub
- URL: https://github.com/lu2000luk/redirector
- Owner: lu2000luk
- Created: 2024-10-21T20:57:23.000Z (18 days ago)
- Default Branch: master
- Last Pushed: 2024-10-22T05:58:24.000Z (18 days ago)
- Last Synced: 2024-10-22T18:42:10.673Z (17 days ago)
- Topics: kv-store, redirect, redirector, redis, svelte, sveltekit, vercel
- Language: TypeScript
- Homepage: https://redirector-lu2000luks-projects.vercel.app
- Size: 84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Redirector
A dynamic redirect system for static websites. Using Vercel KV Database and SvelteKit## How to use
1. Fork the repo
2. Go to https://vercel.com/
3. Click New > Project
4. Select the repo
5. Customize the installation how you want (I personally use `bun install` as the install command)
6. Click Create project
7. Wait for Vercel to deploy
8. Go to the Storage tab
9. Click on Create next to KV
10. Choose your DB name and region
11. In the Project Settings link your domains and subdomains
12. Set up your redirects## How to setup your redirects
Go to your KV dashboard.
In the CLI window use the following commands:
SET [DOMAIN + PATH] [REDIRECT LINK] To create a new redirect (The domain dosent i include www., the port, the queries or the protocol. Example: example.com example.com/ example.com/lol)
GET [DOMAIN + PATH]:analytics To get the number of redirect hitsThe app will automatically update in real time to your changes.
If you set a redirect for a domain without the final slash it will use it as a default for every redirect in the whole domain (not subdomains) that has not been created## Troubleshoot
If the KV dosent connect to the app when you create it go to the deployments tab and in the 3 dots next to the deployment name click "Redeploy"## Disclamer
This was made as a fun project## To-Do
- Redirect Paths
- Delays
- Embeds support
- Client Cashing
- Protected redirects