All skills
firebase avatar

/firebase-app-hosting-basics

@073edf7
by firebasefirebase/skills461 stars
102

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/skills/firebase-app-hosting-basics

This session only. Nothing lands on disk.

SKILL.md

≈107 tokens always: the name and description. ≈546 when used: this file. ≈1.6k more on demand in 3 files.

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",
          "firebase-debug.log",
          "firebase-debug.*.log",
          "functions"
        ]
      }
    }
  2. Create or edit apphosting.yaml- see Configuration 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 for more information on how to set this up using CLI commands.

Emulation

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

Source: SKILL.md on GitHub

1 warning17d5 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    The skill provides instructions for managing Firebase App Hosting using official tools and CLI commands. It uses resources from the trusted vendor (Firebase) for deployment, secret management, and project configuration. The behaviors described are standard for the skill's stated purpose and do not represent a security risk beyond the typical surface for development tools.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: LOW · No issues

  • Runlayer6mo

    2/4 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

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

Last checked against GitHub 3 days ago.

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

README badge

README badge for firebase/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.