dailyhack icon indicating copy to clipboard operation
dailyhack copied to clipboard

Use Netlify for a free and simple URL shortener

Open sunnysingh opened this issue 5 years ago • 2 comments

I use Kent C. Dodd's netlify-shortener tool to setup a free URL shortener on Netlify.

It works by updating a _redirects file in your repository with a CLI command, so I can type shorten https://sunnysingh.io/blog/readable-code my-short-name and it will deploy and copy https://sunny.link/my-short-name to my clipboard.

It's also possible to create a web interface for this as well, but will take a bit more time to setup versus the few minutes with netlify-shortener.

Feel free to look at my URL shortener repo to see how few things are needed to get it working: https://github.com/sunnysingh/sunny.link

sunnysingh avatar Apr 07 '19 15:04 sunnysingh

Thanks Sunny for sharing this useful hack for links shorter. And people will love this hack.

mddanishyusuf avatar Apr 07 '19 15:04 mddanishyusuf

THIS IS AMAZING!!! 😱

Booligoosh avatar Apr 09 '19 07:04 Booligoosh