Firebase Hosting Basics

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

Deploys and configures classic Firebase Hosting for static websites, single-page apps (SPAs), and microservices. Use when deploying static sites/SPAs, setting up custom domains, configuring firebase.json hosting settings (redirects, rewrites, headers, multi-site), or managing preview channels. Don't use for Firebase App Hosting (Next.js/SSR), Auth, Firestore queries/rules, Data Connect, or Crashlytics.

Instructions onlyDevOps & Cloud
AI-generated overview

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

What it does
This skill provides instructions and reference material for working with classic Firebase Hosting. It covers firebase.json hosting configuration such as public directories, redirects, rewrites, headers, and multi-site setups, plus deploying sites, using preview channels, and managing releases. It also notes local emulation of Hosting via the Firebase CLI.
When to use it
Use it when deploying static sites or single-page apps, setting up custom domains, configuring firebase.json hosting settings, or managing preview channels. It is not intended for Firebase App Hosting with SSR frameworks, Auth, Firestore queries or rules, Data Connect, or Crashlytics.
Requirements
Instructions only; no scripts are shipped. It references the Firebase CLI, for example running firebase-tools via npx for local Hosting emulation, and assumes a Firebase project for deployment.

hosting-basics

This skill provides instructions and references for working with Firebase Hosting, a fast and secure hosting service for your web app, static and dynamic content, and microservices.

Overview

Firebase Hosting provides production-grade web content hosting for developers. With a single command, you can deploy web apps and serve both static and dynamic content to a global CDN (content delivery network).

Key Features:

  • Fast Content Delivery: Files are cached on SSDs at CDN edges around the world.
  • Secure by Default: Zero-configuration SSL is built-in.
  • Preview Channels: View and test changes on temporary preview URLs before deploying live.
  • GitHub Integration: Automate previews and deploys with GitHub Actions.
  • Dynamic Content: Serve dynamic content and microservices using Cloud Functions or Cloud Run.

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.

Instructions

1. Configuration (firebase.json)

For details on configuring Hosting behavior, including public directories, redirects, rewrites, and headers, see configuration.md [blocked].

2. Deploying

For instructions on deploying your site, using preview channels, and managing releases, see deploying.md [blocked].

3. Emulation

To test your app locally:

bash
npx -y firebase-tools@latest emulators:start --only hosting

This serves your app at http://localhost:5000 by default.

Source and attribution

Source:firebase/agent-skillsinskills/firebase-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, Cloud Storage) security rules for vulnerabilities, privilege escalation, role bypasses, create vs update inconsistencies, resource exhaustion, type safety, size limits, and hasOnly ownership checks. Use when auditing/reviewing rules, running red-team rule assessments, or scoring against auditor checklists. Don't use for Firebase CLI (login, deploy), Auth, Crashlytics, Remote Config, or database queries.

Awaiting classificationOct 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 App Hosting Basics

firebase

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

DevOps & CloudOct 8, 2026