firebase-hosting-basics
/firebase-hosting-basics
Firebase Hosting for static SPAs and web apps. Use when configuring firebase.json hosting block, deploying a static site to Firebase Hosting, creating preview channels for PR review, or setting up GitHub Actions CI/CD with Workload Identity Federation. Do NOT use for Firebase App Hosting (SSR). Triggers: firebase hosting, deploy angular spa, firebase hosting deploy, preview channel, static site deploy, firebase ci/cd, hosting rewrite.
- Author
- kumaran-is ↗
- Repository
- claude-code-onboarding ↗
- Licence
- MIT
- Last repository change
- 30.06.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 1
No signals detected. Repository changed on 30.06.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Firebase Hosting for static SPAs and web apps. Use when configuring firebase.json hosting block, deploying a static site to Firebase Hosting, creating preview channels for PR review, or setting up GitHub Actions CI/CD with Workload Identity Federation. Do NOT use for Firebase App Hosting (SSR). Triggers: firebase hosting, deploy angular spa, firebase hosting deploy, preview channel, static site deploy, firebase ci/cd, hosting rewrite.
Original author description
Firebase Hosting for static SPAs and web apps. Use when configuring firebase.json hosting block, deploying a static site to Firebase Hosting, creating preview channels for PR review, or setting up GitHub Actions CI/CD with Workload Identity Federation. Do NOT use for Firebase App Hosting (SSR). Triggers: firebase hosting, deploy angular spa, firebase hosting deploy, preview channel, static site deploy, firebase ci/cd, hosting rewrite.
How it works
- Iron Law
- Project Context
SKILL.md preview
--- name: firebase-hosting-basics description: >- Firebase Hosting for static SPAs and web apps. Use when configuring firebase.json hosting block, deploying a static site to Firebase Hosting, creating preview channels for PR review, or setting up GitHub Actions CI/CD with Workload Identity Federation. Do NOT use for Firebase App Hosting (SSR). Triggers: firebase hosting, deploy angular spa, firebase hosting deploy, preview channel, static site deploy, firebase ci/cd, hosting rewrite. allowed-tools: Bash, Read, Write, Edit, Glob --- ## Iron Law **NO FIREBASE HOSTING DEPLOY WITHOUT WORKLOAD IDENTITY FEDERATION.** CI/CD uses GitHub Actions + WIF — never long-lived service account JSON keys. The `GOOGLE_APPLICATION_CREDENTIALS` environment variable must never point to a key file in any workflow or `.env` file. ## Project Context Before using this skill: - Check `CLAUDE.md` for the project's build tool and output path (e.g. `dist/`) - Confirm the `firebase.json` location (typically repo root) - Confirm whether a `hosting` block already exists in `firebase.json` Build the web app before deploying: ```bash # Adjust command to match your project's build setup npm run build # Confirm the output directory matches firebase.json "public" setting ``` # What are you doing? **Configuring firebase.json?** → Load [references/configuration.md](references/configuration.md) → Set `"public"` to the project's actual build output directory **Deploying live or to a preview channel?** → Load [references/deploying.md](references/deploying.md) → For CI/CD with GitHub Actions: Load [references/ci-cd-github-actions.md](references/ci-cd-github-actions.md) **Adding env vars for project ID or WIF?** → Must sync across all env files (`.env`, `.env.staging`, `.env.production`) in the SAME PR → Run the project's env-sync check before committing # References - **Configuration:** [references/configuration.md](references/configuration.md) - **Deploying:** [references/deploying.md](references/deploying.md) - **CI/CD (GitHub Actions + WIF):** [references/ci-cd-github-actions.md](references/ci-cd-github-actions.md) # Related Skills - `angular-spa` — Angular build setup; produces the static output - `firebase-basics` — Firebase CLI auth, project setup, npx discipline - `gcp-cloud-run` — WIF setup patterns reused for Firebase Hosting CI/CD - `deployment-engineer` agent — for complex multi-environment pipeline setup # Local Development Firebase Hosting has no local emulator equivalent — the project's dev server handles this: ```bash # Serve locally (no Firebase needed) — adjust to project's dev command npm run start # Or test the production build locally npx -y firebase-tools@latest emulators:start --only hosting # Serves the build output at http://localhost:5000 ```
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · kumaran-is/claude-code-onboarding | 100 | MIT |
| firebase/agent-skills | 100 | Apache-2.0 |
Database snapshot: 13.11.2026 · package version a01dff5ffc88 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100firebase-app-hosting-basics
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… - 100firebase-app-hosting-basics
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… - 90firebase-expert
Firebase expert covering Firebase CLI, Firebase App Distribution, Crashlytics deobfuscation, Hosting deploys, Functions deploys, and the Firebase MCP Server. Use this skill when asked to deploy to Firebase, distribute apps via App Distribution, deobfuscate Crashlytics, or use… - 95firebase-basics
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`,… - 100firebase-basics
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`,… - 100gcp-firebase-developer
Build, configure, and operate Firebase-powered web and mobile applications — covering Firestore, Firebase Auth, Firebase Hosting, Cloud Functions for Firebase, Firebase Storage, App Check, Firebase Remote Config, and Firebase Analytics. Use when building mobile/web apps with…