A few months ago, I posted how I setup GitHub Actions to deploy a short URL application to Vercel.
Create your personal shorturl with Vercel + GitHub Actions
Thew ・ Sep 17 '20
However it requires some complex setup such as token and project secrets management.
Now, I would like to introduce a new version of vercel-shorturl. In this version, you just clone the template repository, edit redirects.yml
and deploy to Vercel.🎉
Or click the below button to deploy to Vercel immediately!😊
With this new version, you can edit your configuration through GitHub web interface and let Vercel GitHub Integration deploy it immediately.❤
Currently, it is still a beta version and I would like to hear your feedback!🤗 You can reach me on Twitter.
Demo
Demo is deployed with the example redirects.yml.
Here is some route you can try:
See more supported routing features in the example redirects.yml.
Features
Custom page
You can override home page and 404 page by placing index.html
and 404.html
in project root.
Analytics
vercel-shorturl can automatically send an event to Amplitude, just set Amplitude
environment variable to your HTTP API key.
Why Vercel?
Because it's easy and free!✨
Why short URL?
Because it's easy to share and remember. You can set it to your own domain to improve your brand.
ThewApp / vercel-shorturl
Create your own shorturl on Vercel
vercel-shorturl
Create your own shorturl on Vercel Edge Middleware.
Demo
Demo is deployed with the example redirects.yml.
Usage
Use the template
See the example redirects.yml for available features.
Features
Custom page
You can override home page and 404 page by placing index.html
and 404.html
in project root.
Analytics
vercel-shorturl can automatically send an event to Amplitude, just set Amplitude
environment variable to your HTTP API key.
Top comments (1)
Nice tut!