We have to provide unique payment links for our customers from different countries with different currencies, With Geo Redirector we can give a single link to all our customers from around the world.
Clicking the above image would open the video in YouTube.
https://geo-redirector.vercel.app
Geo Redirector is a self-hosted URL redirection application. Add unique URL for each country and get a single URL to share with others. The URL will be redirected to the unique URL according to the visitor's country.
TiDB Cluster in TiDB Serverless. (Recommended)
Deploy to Vercel with a single click.
Create a .env
file with the following environmental variables.
DATABASE_URL
MySQL database URI.DEFAULT_COUNTRY
Default country (ISO 3166-1 alpha-2) for redirecting to if there are no payment links for the visitor's country.
- Clone the repository.
npm install
prisma generate
npm run dev
The MIT License (MIT)
Copyright (c) 2023 ABISHEK MUTHIAN, SAMARASAM SADASIVAM (geo-redirector.vercel.app)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Svelte Kit: https://github.com/sveltejs/kit licensed under The MIT License.
prisma: https://github.com/prisma/prisma licensed under Apache-2.0 license.
tailwindcss: https://github.com/tailwindlabs/tailwindcss licensed under The MIT License.
daisyui: https://github.com/saadeghi/daisyui licensed under The MIT License.