This is a basic URL shortener POC build with Gatsby.
-
Create a Google Spreadsheet with the URLs.
Make a copy of this Google Spreadsheet
-
Make the Spreadsheet public.
Go to File -> Share and make it public.
-
Add your Spreadsheet ID
Copy your Spreasheet ID into
gatsby-node.js
line 2. -
Add new URLs
Whenever a new URL is added to the Spreadsheet, you need to manually trigger a new Github Actions build
- https://blopa.github.io/jamstack-url-shortener/4c2873b2 goes to https://github.com/blopa/jamstack-url-shortener/
- https://blopa.github.io/jamstack-url-shortener/99969f07 goes to https://google.com
- https://blopa.github.io/jamstack-url-shortener/44290ffb goes to https://github.com/blopa
- Make the Gatsby build automatic via Github API call in a custom Spreadsheet action or something like that
- Improve redirecting pages