Index of every page on this site: llms.txt
All skills
firebase avatar

/firebase-app-hosting-basics

@99954a3 official
by firebasefirebase/agent-skills520 stars
116
Run it yourself

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.

Use this Skill: https://skilld.dev/gh/firebase/agent-skills/firebase-app-hosting-basics

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈107 tokens for metadata: the name and description. ≈723 when used: this file. ≈847 more on demand in 2 files.

Description uses 5.4% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈430 characters, or 5.4%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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.

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

  3. 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 /
  4. For sensitive keys/secrets (e.g., from .env*), set and grant access after creating the backend and reference via secret: (never value:):

    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-id
  5. 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 "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.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning16d5 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    This skill provides instructions for deploying and managing applications on Firebase App Hosting. It correctly guides users to use official Firebase tools and secret management features, following security best practices.

  • Socket16d

    No alerts

  • Snyk17d

    Risk: LOW · No issues

  • Runlayer8mo

    2/4 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 99954a3. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated 2 weeks ago
metadata
{
  "author": "Google LLC",
  "category": "Serverless"
}
  • Next.js
  • firebase
  • app-hosting
  • angular
  • ssr
  • deployment
  • full-stack
  • cicd

README badge

README badge for firebase/agent-skills/firebase-app-hosting-basics

Deploys full-stack web applications like Next.js and Angular to Firebase App Hosting with server-side rendering and automated git-push-to-deploy workflows. Requires a Blaze pricing plan and handles secrets management via CLI.

Generated from the current SKILL.md.

Does my Firebase project need to be on a specific pricing plan to use App Hosting?
Yes. Your Firebase project must be on the Blaze pricing plan (pay-as-you-go). You can upgrade at https://console.firebase.google.com/project/_/overview?purchaseBillingPlan=metered.
What frameworks does App Hosting support?
App Hosting is designed for full-stack frameworks like Next.js and Angular that support Server-Side Rendering (SSR) or Incremental Static Regeneration (ISR).
Should I use App Hosting or Firebase Hosting?
Use App Hosting if you're deploying a full-stack framework like Next.js or Angular with SSR; use Firebase Hosting if you're deploying a static site or simple single-page app without server-side rendering.
Can I set up automated deployments from GitHub?
Yes, App Hosting supports automated "git push to deploy" workflows via GitHub CI/CD, though this is recommended for advanced users and not required to use App Hosting.
How do I manage sensitive keys and credentials?
Use the `npx firebase-tools@latest apphosting:secrets` commands to securely set and grant access to sensitive environment variables.

Generated from the current SKILL.md. These answers refresh after source changes.