Firebase App Hosting Basics
Firebase (Google)OfficialCreated by Google LLCDistributed by Firebase (Google)
- Skill
- Tool integration
- Cloud and DevOps
- Apache-2.0
- Low risk
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides guidance on using Firebase App Hosting to deploy modern, full-stack web applications like Next.js and Angular. It covers the configuration of backend environments, management of secrets, and the setup of automated deployment workflows. It is specifically designed for applications requiring Server-Side Rendering (SSR) or Incremental Static Regeneration (ISR) and requires a Blaze pricing plan.
What it does
- Configures Firebase App Hosting backends for full-stack frameworks.
- Manages environment variables and sensitive secrets via Cloud Secret Manager.
- Sets up automated git-push deployment workflows.
- Provides instructions for local testing using the Firebase Local Emulator Suite.
- Defines resource configurations like CPU and memory for hosted services.
When to use it
- When deploying Next.js or Angular applications that require SSR.
- When you need to configure apphosting.yaml or firebase.json for backend hosting.
- When managing sensitive API keys or environment variables for a web application.
- When setting up CI/CD pipelines connected to GitHub repositories.
- When testing application behavior locally before deploying to production.
Advantages
- Supports modern full-stack frameworks with SSR and ISR capabilities.
- Enables zero-configuration automated deployments via git integration.
- Provides a consistent local emulation environment for development.
- Offers granular control over resource allocation and environment variables.
Usage examples
- “How do I set up a new backend for my Next.js app in Firebase App Hosting?”
- The agent will guide you through creating a backend using the firebase-tools CLI and configuring your firebase.json and apphosting.yaml files.
- “How can I securely add an API key to my App Hosting project?”
- The agent will explain how to use the apphosting:secrets:set command to store the key in Secret Manager and grant access to your backend.
- “How do I test my App Hosting configuration locally?”
- The agent will provide instructions for using the Firebase Local Emulator Suite with an optional apphosting.emulator.yaml file.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/firebase/firebase-app-hosting-basics/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip firebase-app-hosting-basics.zip -d .agents/skills
Documentation by Google LLC
App Hosting Basics
Description
This skill enables the agent to deploy and manage modern, full-stack web applications (Next.js, Angular, etc.) using Firebase App Hosting.
Important: In order to use App Hosting, your Firebase project must be on the Blaze pricing plan. Direct the user to https://console.firebase.google.com/project/_/overview?purchaseBillingPlan=metered to upgrade their plan.
Hosting vs App Hosting
Choose Firebase Hosting if:
You are deploying a static site (HTML/CSS/JS).
You are deploying a simple SPA (React, Vue, etc. without SSR).
You want full control over the build and deploy process via CLI.
Choose Firebase App Hosting if:
You are using a supported full-stack framework like Next.js or Angular.
You need Server-Side Rendering (SSR) or ISR.
You want an automated "git push to deploy" workflow with zero configuration.
Deploying to App Hosting
Deploy from Source
This is the recommended flow for most users.
Configure
firebase.jsonwith anapphostingblock.{ "apphosting": { "backendId": "my-app-id", "rootDir": "/", "ignore": [ "node_modules", ".git", ".next", ".vercel", "firebase-debug.log", "firebase-debug.*.log", "functions" ] } }Create or edit
apphosting.yaml- see Configuration for more information on how to do so.Create the backend if it does not exist (
apphosting:backends:list; switch--primary-region, e.g.us-east4, if a region hits its 10-backend quota):npx -y firebase-tools@latest apphosting:backends:create --backend my-app-id --primary-region us-central1 --root-dir /For sensitive keys/secrets (e.g., from
.env*), set and grant access after creating the backend and reference viasecret:(nevervalue:):printf '%s' '<value>' | npx -y firebase-tools@latest apphosting:secrets:set <secret-name> --data-file - --force npx -y firebase-tools@latest apphosting:secrets:grantaccess <secret-name> --backend my-app-idRun
npx -y firebase-tools@latest deploywhen you are ready to deploy.
Automated deployment via GitHub (CI/CD)
Alternatively, set up a backend connected to a GitHub repository for automated
"git push" deployments. For GitHub-connected backends, trigger rollouts with
npx -y firebase-tools@latest apphosting:rollouts:create <backend-id> --git-branch <branch>
(do not use rollouts:create when deploying from local source with deploy).
For other backend or secret flags (backends:get, backends:delete, etc.), run
npx -y firebase-tools@latest <command> --help.
Emulation
See Emulation for more information on how to test your app locally using the Firebase Local Emulator Suite.
Files
- ATTRIBUTION.mdAdded by AutoGineer993 B
- LICENSELicence file added by AutoGineer11.1 KiB
- SKILL.md3.3 KiB
- references/configuration.md1.9 KiB
- references/emulation.md1.5 KiB
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs Node.js
Security
What our scanner noticed· Low risk
- Instructions that use the network
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- Google LLC
- Publisher
- Firebase (Google) (Official)
- Distributed by
- Firebase (Google)
- Source
- firebase/agent-skills · skills/firebase-app-hosting-basics · commit b76be96
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Google LLC or Firebase (Google).
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download firebase-app-hosting-basics.zip