jpskill.com
🛠️ 開発・MCP コミュニティ

firebase-app-hosting-basics

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o firebase-app-hosting-basics.zip https://jpskill.com/download/19103.zip && unzip -o firebase-app-hosting-basics.zip && rm firebase-app-hosting-basics.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/19103.zip -OutFile "$d\firebase-app-hosting-basics.zip"; Expand-Archive "$d\firebase-app-hosting-basics.zip" -DestinationPath $d -Force; ri "$d\firebase-app-hosting-basics.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して firebase-app-hosting-basics.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → firebase-app-hosting-basics フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
4

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

App Hosting の基本

説明

このスキルにより、エージェントは Firebase App Hosting を使用して、最新のフルスタック Web アプリケーション(Next.js、Angular など)をデプロイおよび管理できます。

重要: App Hosting を使用するには、Firebase プロジェクトが Blaze 料金プランである必要があります。プランをアップグレードするには、ユーザーを https://console.firebase.google.com/project/_/overview?purchaseBillingPlan=metered に誘導してください。

Hosting と App Hosting の比較

Firebase Hosting を選択する場合:

  • 静的サイト(HTML/CSS/JS)をデプロイする場合。
  • シンプルな SPA(React、Vue など、SSR なし)をデプロイする場合。
  • CLI を介してビルドおよびデプロイプロセスを完全に制御したい場合。

Firebase App Hosting を選択する場合:

  • Next.js や Angular などのサポートされているフルスタックフレームワークを使用している場合。
  • サーバーサイドレンダリング(SSR)または ISR が必要な場合。
  • 設定不要で「git push でデプロイ」という自動化されたワークフローが必要な場合。

App Hosting へのデプロイ

ソースからのデプロイ

これはほとんどのユーザーに推奨されるフローです。

  1. firebase.jsonapphosting ブロックで設定します。
     {
       "apphosting": {
         "backendId": "my-app-id",
         "rootDir": "/",
         "ignore": [
           "node_modules",
           ".git",
           "firebase-debug.log",
           "firebase-debug.*.log",
           "functions"
         ]
       }
     }
  2. apphosting.yaml を作成または編集します。詳細については、設定を参照してください。
  3. アプリが機密キーに安全にアクセスする必要がある場合は、npx -y firebase-tools@latest apphosting:secrets コマンドを使用してシークレットを設定し、アクセス権を付与します。
  4. デプロイの準備ができたら、npx -y firebase-tools@latest deploy を実行します。

GitHub を介した自動デプロイ(CI/CD)

または、GitHub リポジトリに接続されたバックエンドを設定して、自動的な「git push」デプロイを行います。 これは上級ユーザーにのみ推奨され、App Hosting を使用するために必須ではありません。 CLI コマンドを使用してこれを設定する方法の詳細については、CLI コマンドを参照してください。

エミュレーション

Firebase Local Emulator Suite を使用してアプリをローカルでテストする方法の詳細については、エミュレーションを参照してください。

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

App Hosting Basics

Description

This skill enables the agent to deploy and manage modern, full-stack web applications (Next.js, Angular, etc.) using Firebase App Hosting.

Important: In order to use App Hosting, your Firebase project must be on the Blaze pricing plan. Direct the user to https://console.firebase.google.com/project/_/overview?purchaseBillingPlan=metered to upgrade their plan.

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.

Deploying to App Hosting

Deploy from Source

This is the recommended flow for most users.

  1. Configure firebase.json with an apphosting block.
     {
       "apphosting": {
         "backendId": "my-app-id",
         "rootDir": "/",
         "ignore": [
           "node_modules",
           ".git",
           "firebase-debug.log",
           "firebase-debug.*.log",
           "functions"
         ]
       }
     }
  2. Create or edit apphosting.yaml- see Configuration for more information on how to do so.
  3. If the app needs safe access to sensitive keys, use npx -y firebase-tools@latest apphosting:secrets commands to set and grant access to secrets.
  4. Run npx -y firebase-tools@latest deploy when you are ready to deploy.

Automated deployment via GitHub (CI/CD)

Alternatively, set up a backend connected to a GitHub repository for automated deployments "git push" deployments. This is only recommended for more advanced users, and is not required to use App Hosting. See CLI Commands for more information on how to set this up using CLI commands.

Emulation

See Emulation for more information on how to test your app locally using the Firebase Local Emulator Suite.

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。