firebase-hosting-basics

Deploy static sites, SPAs, and microservices to a global CDN with zero-config SSL. Supports static sites, single-page apps (React, Vue, etc.), and dynamic content via Cloud Functions or Cloud Run integration Includes preview channels for testing changes on temporary URLs before live deployment, with GitHub Actions automation Configure routing, redirects, rewrites, and headers via firebase.json ; emulate locally at http://localhost:5000 before deploying Not intended for full-stack frameworks requiring server-side rendering; use Firebase App Hosting for Next.js, Angular, or similar

INSTALLATION
npx skills add https://github.com/firebase/agent-skills --skill firebase-hosting-basics
Run in your project or agent environment. Adjust flags if your CLI version differs.

SKILL.md

$2a

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.

2. Deploying

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

3. Emulation

To test your app locally:

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

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

BrowserAct

Let your agent run on any real-world website

Bypass CAPTCHA & anti-bot for free. Start local, scale to cloud.

Explore BrowserAct Skills →

Stop writing automation&scrapers

Install the CLI. Run your first Skill in 30 seconds. Scale when you're ready.

Start free
free · no credit card