A dynamic redirect system for static websites. Using Vercel KV Database and SvelteKit
bun install
as the install command)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