firebase-hosting-basics

Развёртывание статических сайтов, одностраничных приложений и микросервисов на глобальной CDN с нулевой настройкой SSL. Поддерживает статические сайты, одностраничные приложения (React, Vue и т.д.) и динамический контент через интеграцию с Cloud Functions или Cloud Run. Включает каналы предварительного просмотра для тестирования изменений по временным URL перед публикацией, с автоматизацией через GitHub Actions. Настройка маршрутизации, перенаправлений, перезаписи URL и заголовков через firebase.json; локальная эмуляция по адресу http://localhost:5000 перед развёртыванием. Не предназначено для полнофункциональных фреймворков...

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.

Больше skills от firebase

firebase-remote-config-basics
firebase
Всеобъемлющее руководство по Firebase Remote Config, включая управление шаблонами и использование SDK. Используйте этот навык, когда пользователю нужна помощь в настройке Remote Config, управлении функциональными флагами или динамическом обновлении поведения приложения.
officialdevelopmentapi
developing-genkit-dart
firebase
Унифицированный AI SDK для Dart, обеспечивающий генерацию кода, структурированные выходные данные, инструменты, потоки и агенты. Предоставляет основные API для генерации, определения инструментов, оркестрации потоков, эмбеддингов и стриминга через единый интерфейс. Включает 8+ плагинов для LLM-провайдеров (Google Gemini, Anthropic Claude, OpenAI GPT), Firebase AI, Model Context Protocol, интеграцию с браузером Chrome и хостинг HTTP-сервера через Shelf. Встроенный CLI с локальным UI для разработки, позволяющий выполнять потоки, трассировку, эксперименты с моделями и...
official
developing-genkit-go
firebase
Разрабатывайте AI-приложения с использованием Genkit на Go. Используйте, когда пользователь просит создать AI-функции, агентов, потоки или инструменты на Go с помощью Genkit, или при работе…
official
developing-genkit-js
firebase
We need to translate the given text from English to Russian, preserving the name "developing-genkit-js" if it appears, but it doesn't appear in the text. The text is a description of an agent skill. We must not add any extra commentary, labels, or formatting. Just the translation. The text: "Build AI-powered Node.js/TypeScript applications with Genkit flows, tools, and multi-model support. Genkit is provider-agnostic; supports Google AI, OpenAI, Anthropic, Ollama, and other LLM providers via plugins Define flows with type-safe schemas using Zod, execute generation requests, and compose multi-step AI workflows in TypeScript Requires Genkit CLI v1.29.0+; recent major API changes mean you must consult genkit docs:read and common-errors.md for current patterns, not prior knowledge..." We need to translate accurately, preserving technical terms like "Genkit", "Node.js", "TypeScript", "Zod", "CLI", "v1.29.0+", "docs:read",
official
developing-genkit-python
firebase
Разрабатывайте AI-приложения с помощью Genkit на Python. Используйте, когда пользователь спрашивает о Genkit, AI-агентах, потоках или инструментах на Python, или при столкновении с Genkit…
official
firebase-ai-logic
firebase
We need to translate the given English text into Russian, preserving the name "firebase-ai-logic" if it appears. The text does not contain the name, so we just translate the description. The instruction says: "Do not include the name unless it appears in the source text." It does not appear. So we translate the description. 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", "Gemini Nano", "Cloud Storage", "App Check", "JSON", "Chrome", "multimodal inference", "streaming", "on-device hybrid execution", etc. Also numbers:
official
firebase-ai-logic-basics
firebase
Официальный навык для интеграции Firebase AI Logic (Gemini API) в веб-приложения. Охватывает настройку, мультимодальный вывод, структурированный вывод и безопасность.
official
firebase-app-hosting-basics
firebase
Развёртывание и управление полнофункциональными веб-приложениями с помощью Firebase App Hosting с использованием Next.js, Angular и других поддерживаемых фреймворков. Требуется проект Firebase на тарифном плане Blaze; поддерживаются рабочие процессы серверного рендеринга (SSR) и инкрементальной статической регенерации (ISR). Развёртывание через конфигурацию firebase.json с опциональным файлом apphosting.yaml для настройки бэкенда или включение автоматического развёртывания через "git push" с интеграцией GitHub. Включает управление секретами через команды CLI для безопасного доступа к конфиденциальным ключам...
official