- Firebase Hosting serves SSR via
nextapp and /api/** via api.
- Deploy functions:
pnpm --filter functions deploy or firebase deploy --only functions.
- Option for Docs:
- GitHub Pages: use Docusaurus deploy action.
- Firebase Hosting subpath
/docs/**: add static rewrite to Docusaurus build folder (requires firebase.json change).
- Separate Firebase Hosting site target for docs (recommended to avoid SSR rewrites).
Build & Deploy
- Web:
pnpm --filter web build → SSR is bundled and deployed with functions nextapp.
- Functions:
pnpm --filter functions deploy
- Docs:
pnpm --filter docs build then deploy per your chosen hosting.
Runtime
- Node.js 22 for functions (
engines.node in apps/functions/package.json).
nextapp serves the Next.js app from apps/functions using next request handler.
Environment Variables
API_KEY must be configured for protected HTTP endpoints.