Skip to content

blopa/jamstack-url-shortener

Repository files navigation

JAMStack URL Shortener

This is a basic URL shortener POC build with Gatsby.

🚀 Quick start

  1. Create a Google Spreadsheet with the URLs.

    Make a copy of this Google Spreadsheet ScreenShot

  2. Make the Spreadsheet public.

    Go to File -> Share and make it public. ScreenShot

  3. Add your Spreadsheet ID

    Copy your Spreasheet ID into gatsby-node.js line 2.

  4. Add new URLs

    Whenever a new URL is added to the Spreadsheet, you need to manually trigger a new Github Actions build ScreenShot

🗜 Examples

📝 TODO list

  • Make the Gatsby build automatic via Github API call in a custom Spreadsheet action or something like that
  • Improve redirecting pages