This is a template to host a Next.js repo on Github and deploy to Firebase Cloud Function and Firebase Hosting via Github Actions. I've create a Medium Post to talk about the details in the template.
Based on the Firebase Hosting priority order, all static content will be served with Firebase CDN, and Firebase Cloud Functions will serve any missed request. Combine with Github Actions, we can now build our own Vercel auto-deploy and test our application for every PR and push to the main branch.
Hit User this Template button or git clone
this repo to your local environment.
- Edit
.firebaserc
- Edit
firebase.json
- Add
FIREBASE_TOKEN
to your repo secret