Firebase Hosting Deployment
Cur8d includes configuration for deploying both the main application (site) and the documentation (docs) to Firebase Hosting.
Configuration
Firebase project mapping and hosting rules are defined in:
.firebaserc: Maps project aliases to Firebase project IDs.firebase.json: Configures hosting targets (siteanddocs), clean URLs, custom HTTP security headers (CSP, HSTS, X-Frame-Options), and cache settings.
Automated CI/CD Deployment
Firebase deployment is configured in .github/workflows/deploy.yml:
- Can be triggered manually via
workflow_dispatchselecting thefirebaseprovider. - Deploys preview channels or live production channels based on the specified environment.
Setting up Secrets in GitHub
- Obtain a Firebase CI token via
firebase login:ci. - Add
FIREBASE_TOKENas a repository secret (Settings > Secrets and variables > Actions).
Local Deployment via mise
# Deploy main site to Firebase
export FIREBASE_TOKEN="your_token"
export FIREBASE_ENV="production" # or preview
mise run deploy:firebase
# Or using package.json scripts directly
pnpm run deploy:firebase
pnpm run deploy:firebase:docsLast updated on