DEV Community

Cover image for CloudFlare URL Shortener
Avik Kundu
Avik Kundu

Posted on

CloudFlare URL Shortener

CloudFlare Worker Script to setup URL Shortener Service


Alt Text
You can optionally add your own aliases. If not, an random string would be assigned.


You need to paste this script in the Index.JS file of your CloudFlare Worker

The Service : https://short-linker.lucifergene.workers.dev/

You can visit the repository from below:

👷 Cloudflare URL Shortener

index.js is the content of the Workers script.

Wrangler

To generate using wrangler

wrangler generate projectname https://github.com/Lucifergene/Cloudflare-URL-Shortener

Further documentation for Wrangler can be found here.





You can reach out on my Twitter, Instagram, or LinkedIn if you need more help. I would be more than happy.

If you have come up to this, do drop an ❤️ if you liked this article.

Top comments (0)