A template for redirecting by country code in Cloudflare Workers.
index.js
is the content of the Workers script.
To generate using wrangler
wrangler generate country-code https://github.com/conzorkingkong/country-code
To deploy using serverless add a serverless.yml
file.