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...

npx skills add https://github.com/firebase/agent-skills --skill firebase-hosting-basics

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.

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.

Mais skills de firebase

firebase-remote-config-basics
firebase
Guia abrangente para o Firebase Remote Config, incluindo gerenciamento de templates e uso do SDK. Use esta habilidade quando o usuário precisar de ajuda para configurar o Remote Config, gerenciar feature flags ou atualizar o comportamento do aplicativo dinamicamente.
officialdevelopmentapi
developing-genkit-dart
firebase
SDK de IA unificado para Dart que permite geração de código, saídas estruturadas, ferramentas, fluxos e agentes. Fornece APIs principais para geração, definição de ferramentas, orquestração de fluxos, embeddings e streaming com uma única interface. Inclui mais de 8 plugins para provedores de LLM (Google Gemini, Anthropic Claude, OpenAI GPT), Firebase AI, Model Context Protocol, integração com navegador Chrome e hospedagem de servidor HTTP via Shelf. CLI integrado com interface de desenvolvimento local para execução de fluxos, rastreamento, experimentação de modelos e...
official
developing-genkit-go
firebase
Desenvolva aplicações com tecnologia de IA usando Genkit em Go. Use quando o usuário pedir para construir funcionalidades de IA, agentes, fluxos ou ferramentas em Go usando Genkit, ou ao trabalhar…
official
developing-genkit-js
firebase
Crie aplicativos Node.js/TypeScript com tecnologia de IA usando flows, ferramentas e suporte a múltiplos modelos do Genkit. O Genkit é independente de provedor; suporta Google AI, OpenAI, Anthropic, Ollama e outros provedores de LLM por meio de plugins. Defina flows com esquemas type-safe usando Zod, execute solicitações de geração e componha workflows de IA de várias etapas em TypeScript. Requer Genkit CLI v1.29.0+; mudanças recentes na API significam que você deve consultar genkit docs:read e common-errors.md para padrões atuais, e não conhecimento prévio...
official
developing-genkit-python
firebase
Desenvolva aplicações com tecnologia de IA usando Genkit em Python. Use quando o usuário perguntar sobre Genkit, agentes de IA, fluxos ou ferramentas em Python, ou ao encontrar Genkit…
official
firebase-ai-logic
firebase
We need to translate the given text from English to Brazilian Portuguese. The text describes a client-side Gemini integration for web apps. We must preserve the name "firebase-ai-logic" but it's not in the text, so we ignore. We must not add any labels or extra commentary. Just translate the text. The text: "Client-side Gemini integration for web apps with multimodal inference, streaming, and on-device hybrid execution. Supports text-only and multimodal inputs (images, audio, video, PDFs); files over 20 MB route through Cloud Storage Includes chat sessions with automatic history, streaming responses for real-time display, and structured JSON output enforcement Offers hybrid on-device inference via Gemini Nano in Chrome, with automatic fallback to cloud execution Requires App Check for production..." We need to translate accurately, preserving technical terms like "Gemini", "Cloud Storage", "Gemini Nano", "Chrome", "App Check", "JSON", "MB". Also "multimodal inference", "streaming", "on-device hybrid execution", etc. Let's translate:
official
firebase-ai-logic-basics
firebase
Habilidade oficial para integrar o Firebase AI Logic (API Gemini) em aplicações web. Aborda configuração, inferência multimodal, saída estruturada e segurança.
official
firebase-app-hosting-basics
firebase
We need to translate the given text from English to Brazilian Portuguese. The text describes a skill for deploying and managing web apps with Firebase App Hosting. We must preserve product names, protocol names, URLs, numbers, technical terms. The name "firebase-app-hosting-basics" is not in the text, so we don't include it. We translate only the text inside <text>. No extra commentary. Let's translate: "Deploy and manage full-stack web apps with Firebase App Hosting using Next.js, Angular, and other supported frameworks." -> "Implante e gerencie aplicativos web full-stack com o Firebase App Hosting usando Next.js, Angular e outros frameworks compatíveis." "Requires Firebase project on Blaze pricing plan; supports Server-Side Rendering (SSR) and Incremental Static Regeneration (ISR) workflows" -> "Requer projeto Firebase no plano de preços Blaze; suporta fluxos de trabalho de Renderização no Servidor (SSR) e Regeneração Estática Incremental (ISR
official