For all information, please read the Medium post
git clone https://github.com/JulienHe/firebase-next-routes-example.git
cd firebase-next-routes-example
yarn install
It is recommended to use a package manager that uses a lockfile and caching for faster dev/test cycles:
Set up firebase:
- create a project through the firebase web console
- grab the projects ID from the web consoles URL: console.firebase.google.com/project
- update the
.firebaserc
default project ID to the newly created project
Standard Next.js development with Hot-module Reloading etc
yarn dev
You will need to connect the project to your Firebase project. Edit the name in .firebaserc or run firebase init
and choose not to override any files.
yarn deploy-app
Deploy all functions specified in the function group. Edit this script to add more function groups. - see Partial deploys docs for how to use function groups.
yarn deploy-funcs
yarn deploy-all
yarn clean