All skills
firebase avatar

/firebase-app-hosting-basics

@073edf7 official
by firebasefirebase/agent-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/agent-skills/firebase-app-hosting-basics

This session only. Nothing lands on disk.

referencesemulation.md

≈374 tokens on demand. Your agent reads this file only when SKILL.md points to it.

App Hosting Emulation

You can test your App Hosting setup locally using the Firebase Local Emulator Suite. This allows you to verify your app's behavior with environment variables and secrets before deploying.

Configuration: apphosting.emulator.yaml

This optional file overrides apphosting.yaml settings specifically for the local emulator. Use it to provide local secret values or override resource configs. If it contains sensitive values such as API keys, do not commit it to source control.

# apphosting.emulator.yaml (gitignored usually)
runConfig:
  cpu: 1
  memoryMiB: 512

env:
  - variable: API_KEY
    value: "local-dev-api-key" # Override secret with local value

Running the Emulator

To start the App Hosting emulator:

npx -y firebase-tools@latest emulators:start --only apphosting

Or, if you are also using other emulators (Auth, Firestore, etc.):

npx -y firebase-tools@latest emulators:start

Capabilities

  • Builds your app: Runs the build command defined in your package.json to generate the serving artifact.
  • Serves locally: Runs the app on localhost:5004 (default). Configurable by setting host and port in the emulators block of firebase.json, like so:
{
  "emulators": {
    "apphosting": {
      "host": "localhost",
      "port": 5004
    }
  }
}
  • Env Var Injection: Injects variables defined in apphosting.yaml and apphosting.emulator.yaml into the process.

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 2 days ago.

Activeupdated 2 months ago
metadata
{
  "category": "Serverless"
}

README badge

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