hosting

Deploy static content to Firebase Hosting with preview channels and rewrites.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/theslashdojo/dojo --skill hosting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hosting
Source: https://github.com/theslashdojo/dojo/tree/main/nodes/firebase/hosting
Command: npx skills add https://github.com/theslashdojo/dojo --skill hosting

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires firebase-tools, and includes scripts (resource) components.

What problem does it solve?

Deploy static hosting and SPAs to Firebase Hosting with a global CDN, automatic SSL, preview channels, and multi-site support to streamline web app delivery.

Core Features & Use Cases

  • Global CDN deployment for static assets with automatic SSL
  • Preview channels for staging and PR previews
  • Rewrites to Cloud Functions or Cloud Run for dynamic content
  • Multi-site hosting via deploy targets and firebase.json configuration

Quick Start

Initialize Firebase Hosting for your project and run a production deployment with optional preview channels.

Frequently Asked Questions about hosting

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

FAQPage Schema
How do I deploy a static site to a global CDN using Firebase Hosting?

Deploy a static site to Firebase Hosting by configuring firebase.json and running a production deployment via the Firebase CLI. This serves your static assets through a global CDN with automatic SSL enabled.

Can I create preview channels for staging and PR previews in Firebase Hosting?

Yes, Firebase Hosting supports preview channels to stage changes and generate PR previews. You can manage these temporary channels through the Firebase CLI before pushing to production.

How do I configure rewrites to Cloud Functions or Cloud Run for dynamic routes?

Configure rewrites to Cloud Functions or Cloud Run by defining route mappings in your firebase.json hosting configuration. This directs dynamic content requests to your backend services seamlessly.

Does Firebase Hosting support multi-site hosting for different web apps?

Yes, Firebase Hosting supports multi-site hosting through deploy targets. You configure multiple sites within your firebase.json file and target specific apps during the deployment workflow.

Do I need the Firebase CLI and a specific configuration to deploy my SPA?

Yes, you need the Firebase CLI installed and a proper firebase.json hosting configuration. These prerequisites coordinate the deployment workflow and define SPA routing behavior.