firebase-hosting-basics

Deploy static sites and SPAs to Firebase Hosting with firebase-tools.

Updated Apr 2, 2025
One-click install
npx skills add https://github.com/xbg-solutions/boilerplate_sveltekit --skill firebase-hosting-basics-xbg-solutions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: firebase-hosting-basics
Source: https://github.com/xbg-solutions/boilerplate_sveltekit/tree/main/.claude/skills/firebase/firebase-hosting-basics
Command: npx skills add https://github.com/xbg-solutions/boilerplate_sveltekit --skill firebase-hosting-basics-xbg-solutions

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill provides concise guidance for deploying static web content using Firebase Hosting, including when to choose Hosting over App Hosting and how to configure hosting behavior for fast, secure delivery.

Core Features & Use Cases

  • Fast, global delivery with a global CDN and built-in SSL.
  • Preview channels and integration with development workflows for safe testing.
  • Clear guidance on when to use Firebase Hosting (static sites, simple SPAs) vs Firebase App Hosting (SSR or full-stack apps).

Quick Start

Initialize hosting for your project with firebase init hosting, then deploy using firebase-tools to publish your site.

Frequently Asked Questions about firebase-hosting-basics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a static site or SPA to Firebase Hosting?

To deploy a static site, initialize your project with firebase init hosting and use firebase-tools to publish your content. This configures the firebase.json file and deploys your static files to the global CDN.

When should I choose Firebase Hosting over Firebase App Hosting?

Choose Firebase Hosting for static websites, simple SPAs, and microservices needing fast CDN delivery. Choose Firebase App Hosting instead when your project requires server-side rendering or full-stack backend capabilities.

Does Firebase Hosting include SSL and CDN delivery for client-side apps?

Firebase Hosting provides built-in SSL and fast global CDN delivery for client-side apps. This ensures secure and rapid content distribution for your deployed static sites without additional configuration.

Can I use preview channels and local emulation for testing Firebase Hosting?

Firebase Hosting supports local emulation and preview channels for safe testing. You can integrate these preview deployments into your development workflow to validate changes before publishing to production.

What is the purpose of the firebase.json file in Firebase Hosting?

The firebase.json file configures hosting behavior for your static site deployment. It defines how your files are served and structured, ensuring fast and secure delivery through the global CDN.

What are the limitations of using Firebase Hosting for web apps?

Firebase Hosting is limited to static sites, simple SPAs, and microservices. It is not suitable for applications requiring server-side rendering or full-stack backend logic, where Firebase App Hosting is required.