Skip to content

sarthaktexas/srtk.me-v2

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Link Shortener

GitHub GitHub issues GitHub contributors GitHub last commit

⚡️ Fast and easy-to-use link shortener using Next.js and Airtable.

Airtable Setup:

╔══════════╦══════════════════════╗
║ slug     ║ destination          ║
╠══════════╬══════════════════════╣
║ website  ║ https://srtk.me      ║
╠══════════╬══════════════════════╣
║ hackclub ║ https://hackclub.com ║
╠══════════╬══════════════════════╣
║ rishi    ║ https://rishi.cx     ║
╚══════════╩══════════════════════╝

The Airtable used must be formatted as shown above. There may be other columns, but the first two must be slug and destination (lowercase). Also the table name must be Links (capital L).

Note the Capitalization!

slug is the end URL you'd like to redirect from. destination is the end URL that you'd like to redirect to.

in the example above, the slug website means the user would go to /website and get redirected to the destination https://srtk.me

Basic Setup:

Just click the button below, and fill in the appropriate fields. Your AIRTABLE_API_KEY can be found like this. And your AIRTABLE_BASE_ID can be found like this.

Deploy with Vercel

© Sarthak Mohanty 2020. Licensed under MIT. See LICENSE for more infomation.

About

⚡ My original Link Shortener now made with Next and Next Router. Supports URL Parameters.

Topics

Resources

License

Stars

Watchers

Forks