Shipping production web apps on Firebase Hosting
summary
Friendly Eats is a production-ready restaurant review web app deployed with Firebase Hosting using separate dev, staging and production projects, on the Blaze plan with budget alerts. The build uses a predeploy hook that exposes $GCLOUD_PROJECT to pick env-specific init files, browser API keys are restricted by origin and API, Cloud Logging captures request and 404s, and GitHub Actions auto-deploys PRs to preview channels and merges to staging; a QA preview is cloned to the live channel successfully.
AI-written summary · about
chapters (10)
- 0:00Start
- 0:43create a second dev firebase project for my app
- 1:17automate testing and deployment of our site
- 1:43enable cloud logging
- 2:44review all of the members of your project
- 3:10add two types of restrictions
- 4:31use firebase hosting preview channels
- 6:21add a pre-deploy hook to my firebase
- 9:44deploy my site to a preview channel without affecting any existing deploys
- 14:06set up the cloud logging integration
related talks
02h 54mInfrastructure for Firebase project
36mCI/CD in a Serverless World
25mWhy web developers (should) love Firebase
43mServing for the win - Deploys and hosting for the rest of us
35mArchitecting Mobile Web Apps
34mServing for the win - Deployments and hosting for the rest of us
39mHow GCP Helped Me Save My Production at Mamie’s
39mEnterprise Grade Mobile Apps with Firebase
