# Install dependencies & Build functions with hot-reload (Shell A)
npm ci
cd functions && npm ci && npm run build:watch &
# Start emulators (Shell B)
npm run emulate
# Start server (Shell C)
npm run dev
- Hosting: Firebase Hosting with Next.js static export.
- Functions: Proxies site data fetch to avoid CORS restriction.
- Database: Firebase Firestore.
All the three components can be emulated locally using firebase-tools
.
You can just run npm run emulate
to start all the emulators.
Data is imported/exported from/to ./emulator-data
directory.
All the three components are deployed to Firebase using GitHub Actions with the service account.
- FirebaseExtended/action-hosting-deploy does not support deployment other than Hosting.
firebase-tools
somehow invokes permissin error when runningdeploy --only functions,firestore
, whilefirebase deploy --only firestore,functions
works fine.firebase-functions
module V2 cannot pass appropriate authorization info toonCall
. Known issue.