Firebase App Hosting Basics

by firebaseeba80a3dc825No licenseListed Oct 8, 2026Updated Oct 8, 2026

Deploys and manages full-stack web applications (Next.js, Angular) with Server-Side Rendering (SSR) using Firebase App Hosting. Use when deploying Next.js/Angular apps, configuring apphosting.yaml or firebase.json apphosting blocks, managing secrets, setting up GitHub CI/CD, or configuring Blaze billing requirements. Don't use for classic static web hosting, Auth, Firestore, Crashlytics, or Xcode.

Instructions onlyDevOps & Cloud
AI-generated overview

Guides deploying and managing full-stack Next.js or Angular apps with SSR on Firebase App Hosting.

What it does
This skill walks an agent through deploying full-stack web applications such as Next.js and Angular to Firebase App Hosting, including SSR and ISR setups. It covers choosing between classic Firebase Hosting and App Hosting, configuring firebase.json apphosting blocks and apphosting.yaml, managing secrets, and setting up GitHub-based CI/CD. It also points to reference material on CLI commands and local emulation.
When to use it
Use it when deploying or configuring a Next.js or Angular app on Firebase App Hosting, editing apphosting.yaml or firebase.json apphosting blocks, handling App Hosting secrets, or setting up GitHub push-to-deploy. It is not intended for classic static hosting, Auth, Firestore, Crashlytics, or Xcode work.
Requirements
Firebase project on the Blaze pricing plan; Node/npx with firebase-tools (invoked via npx -y firebase-tools@latest); a Firebase project and app source; GitHub repository access for CI/CD setup. Instructions only, no bundled scripts.

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.

  1. Configure firebase.json with an apphosting block.

    json
    {  "apphosting": {    "backendId": "my-app-id",    "rootDir": "/",    "ignore": [      "node_modules",      ".git",      "firebase-debug.log",      "firebase-debug.*.log",      "functions"    ]  }}
  2. Create or edit apphosting.yaml- see Configuration [blocked] for more information on how to do so.

  3. If the app needs safe access to sensitive keys, use npx -y firebase-tools@latest apphosting:secrets commands to set and grant access to secrets.

  4. Run npx -y firebase-tools@latest deploy when you are ready to deploy.

Automated deployment via GitHub (CI/CD)

Alternatively, set up a backend connected to a GitHub repository for automated deployments "git push" deployments. This is only recommended for more advanced users, and is not required to use App Hosting. See CLI Commands [blocked] for more information on how to set this up using CLI commands.

Emulation

See Emulation [blocked] for more information on how to test your app locally using the Firebase Local Emulator Suite.

Source and attribution

Source:firebase/agent-skillsinskills/firebase-app-hosting-basicsat commiteba80a3

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal

More from firebase/agent-skills

Firebase Remote Config Basics

firebase

Guides Firebase Remote Config setup, template management, feature flags, and loading strategies for Android and iOS apps.

Software DevelopmentOct 8, 2026

Firestore Rules Creation

firebase

Designs, authors, refactors, and hardens production-grade Cloud Firestore Security Rules (firestore.rules). IMPORTANT: If subagent delegation AND the firestore-rules-author subagent are available in your environment, delegate authoring firestore.rules to the firestore-rules-author subagent. If subagent delegation is unavailable (e.g. not enabled in the IDE), firestore-rules-author is not installed, or you are running inside firestore-rules-author, follow this skill directly.

Awaiting classificationOct 8, 2026

Firebase Security Rules Auditor

firebase

Audits Firebase Firestore and Cloud Storage security rules for vulnerabilities and returns a scored JSON assessment.

SecurityOct 8, 2026

Firebase Firestore

firebase

Guides setting up, querying and configuring Cloud Firestore databases, including data models, indexes and SDK integration.

DevOps & CloudOct 8, 2026

Firebase Basics

firebase

Provides foundational Firebase CLI setup, CLI installation, version checks (`firebase-tools@latest --version`), CLI login (including --no-localhost), project creation, project selection (`firebase use`), and app config file downloads (`google-services.json`, `GoogleService-Info.plist`). Use ONLY for CLI login, project creation/switching, or downloading app config files. Don't use for Firebase Hosting deploy, Firestore, Auth, App Hosting, Data Connect, Crashlytics, or Remote Config.

Awaiting classificationOct 8, 2026

Firebase Hosting Basics

firebase

Guides deploying and configuring classic Firebase Hosting for static sites, SPAs, and microservices.

DevOps & CloudOct 8, 2026