Inspiration

Static site generation tools have been trendy. Multiple version deployments have been made popular by platform such as netlify. I want to explore this model and build an easy open source alternative completely running on serverless platforms.

What it does

StaticLink is a set of API where you can create a static site and publish multiple versions of the site easily.

How we built it

The Next.js server handles all traffic, which can be easily deployed on Vercel serverless platform. All files and related data are stored in firebase powered by google cloud storage and firestore.

Challenges we ran into

I need to hack Next.js a bit to make the routes work.

Accomplishments that we're proud of

The service is quite easy to deploy with only several commands. Running completely on serverless platforms also means it is easier to scale and costs much less.

What we learned

Building serverless service is quite different. There is much less abstraction compared to using a web framework. It's my first time to use a postman workspace, which help debug the serverless request body.

What's next for StaticLink - static sites deployments in Postman

  1. Support deploying with aws lambda and google cloud functions
  2. DNS & CDN integration support
  3. Easier ci/cd integration, such as Github action and circle ci
  4. Token management and multiple users support

Built With

Share this project:

Updates