https://github.com/hugginsio/vercel-url-shortener
A simple, straightforward URL shortener, powered by Vercel Redirects.
https://github.com/hugginsio/vercel-url-shortener
template-project url-shortener vercel
Last synced: 4 months ago
JSON representation
A simple, straightforward URL shortener, powered by Vercel Redirects.
- Host: GitHub
- URL: https://github.com/hugginsio/vercel-url-shortener
- Owner: hugginsio
- Created: 2023-10-10T01:22:48.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-10T01:28:25.000Z (almost 2 years ago)
- Last Synced: 2025-01-29T22:46:19.828Z (8 months ago)
- Topics: template-project, url-shortener, vercel
- Homepage: https://url-shortener-with-redirects.vercel.app
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fhugginsio%2Fgo&project-name=url-shortener&repository-name=vercel-url-shortener)
A simple, straightforward URL shortener, powered by [Vercel Redirects](https://vercel.com/docs/projects/project-configuration#redirects). Take a look at [vercel.json](./vercel.json) to see how it works.
Customization is simple. Adding a new redirect is as simple as inserting a new definition at the top of the `redirects` array. Your redirect can be a simple static URL or a dynamic URL that uses pattern matching to very intentionally redirect end users.
Here, try a few:
- [url-shortener-with-redirects.vercel.app/docs](https://url-shortener-with-redirects.vercel.app/docs)
- [url-shortener-with-redirects.vercel.app/github/hugginsio](https://url-shortener-with-redirects.vercel.app/github/hugginsio)
- [url-shortener-with-redirects.vercel.app/](https://url-shortener-with-redirects.vercel.app/)A tip: leave a root wildcard redirect (`/(.*)`) at the end of the array so that users who navigate to removed or incorrect short URLs are redirected somewhere useful, like your website.