DEV Community 👩‍💻👚‍💻

DEV Community 👩‍💻👚‍💻 is a community of 968,873 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
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 :

You can visit the repository from below:

👷 Cloudflare URL Shortener

index.js is the content of the Workers script.


To generate using wrangler

wrangler generate projectname

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)

Visualizing Promises and Async/Await 🀯

async await

☝ Check out this all-time classic DEV post