A dynamic redirect system for static websites. Using Vercel KV Database and SvelteKit
- Fork the repo
- Go to https://vercel.com/
- Click New > Project
- Select the repo
- Customize the installation how you want (I personally use
bun install
as the install command) - Click Create project
- Wait for Vercel to deploy
- Go to the Storage tab
- Click on Create next to KV
- Choose your DB name and region
- In the Project Settings link your domains and subdomains
- Set up 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 hits
The 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
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"
This was made as a fun project
- Redirect Paths
- Delays
- Embeds support
- Client Cashing
- Protected redirects