Firebase's official skill for deploying static sites and SPAs to classic Firebase Hosting: firebase.json redirects, rewrites and headers, preview channels, custom domains, local emulation, and when to pick App Hosting instead.
Firebase App Hosting Basics Skill
Firebase's official skill for deploying full-stack Next.js and Angular apps with SSR on Firebase App Hosting: apphosting.yaml, backends, secrets, GitHub rollouts and the Blaze plan.
Install
Other ways to install
About
- Decides between Firebase Hosting and App Hosting for a project
- Deploys Next.js and Angular apps with SSR or ISR
- firebase.json apphosting block and apphosting.yaml configuration
- Backend creation with region-quota handling
- Secrets via apphosting:secrets:set and secret: references
- GitHub-connected rollouts and local emulation
firebase-app-hosting-basics comes from firebase/agent-skills, Google's official skills for Firebase. It teaches an agent to deploy and manage full-stack web apps on Firebase App Hosting, the product for frameworks that need server-side rendering, as opposed to classic Firebase Hosting for static sites.
Choosing between them. The skill starts with a decision rule: static sites and SPAs without SSR go to Firebase Hosting; Next.js, Angular and other supported frameworks that need SSR or ISR, or a zero-config git-push deploy, go to App Hosting. It also states up front that App Hosting requires the Blaze pay-as-you-go plan and links the upgrade page.
Deploy from source. Add an apphosting block to firebase.json (backend id, root dir, ignore list), write apphosting.yaml, create the backend with apphosting:backends:create (switching --primary-region when a region hits its 10-backend quota), set secrets from .env files with apphosting:secrets:set and grant the backend access, referencing them via secret: and never value:, then firebase deploy. All commands run through npx -y firebase-tools@latest.
GitHub CI/CD. For backends connected to a repository, rollouts are triggered with apphosting:rollouts:create --git-branch, which the skill warns not to mix with local-source deploys. A reference file covers local testing with the Emulator Suite.
It explicitly does not cover Auth, Firestore, Crashlytics or static hosting. Apache-2.0, authored by Google.
Try it
Once installed, ask your agent something like:
Deploy this Next.js app to Firebase App Hosting in us-east4, moving the API keys in .env.local into App Hosting secrets.
SKILL.md
The instructions your agent loads, as published by Firebase.
Related Skills
See all Firebase App Hosting Basics alternativesPrisma's official skill for deploying and operating TypeScript apps on Prisma Compute with the Prisma 8 CLI: Composer apps, preview stages, deploy on push, logs, rollbacks and domains.
Skill: Deploy to Vercel
by Vercel
Vercel's official deployment skill — inspects project state, picks the right deploy path, and defaults to preview deployments with a claimable URL when no account is linked.
Firebase's official skill for calling Gemini from Android, iOS, web and Flutter apps with Firebase AI Logic: provisioning, SDK setup, chat, streaming, TTS, structured output and App Check.