firebase-app-hosting-basics by firebase/skills
npx skills add https://github.com/firebase/skills --skill firebase-app-hosting-basics此技能使智能体能够使用 Firebase 应用托管来部署和管理现代化的全栈 Web 应用程序(Next.js、Angular 等)。
重要提示:为了使用应用托管,您的 Firebase 项目必须处于 Blaze 定价计划。请引导用户访问 https://console.firebase.google.com/project/_/overview?purchaseBillingPlan=metered 以升级其计划。
在以下情况下选择 Firebase 托管:
在以下情况下选择 Firebase 应用托管:
这是大多数用户推荐的工作流程。
在 firebase.json 中配置 apphosting 块。
{
"apphosting": {
"backendId": "my-app-id",
"rootDir": "/",
"ignore": [
"node_modules",
".git",
"firebase-debug.log",
"firebase-debug.*.log",
"functions"
]
}
}
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
创建或编辑 apphosting.yaml - 有关如何操作的更多信息,请参阅配置。
如果应用需要安全访问敏感密钥,请使用 npx -y firebase-tools@latest apphosting:secrets 命令来设置和授予对密钥的访问权限。
准备就绪后,运行 npx -y firebase-tools@latest deploy 进行部署。
或者,可以设置一个连接到 GitHub 仓库的后端,以实现“git push”自动化部署。这仅推荐给更高级的用户,并且不是使用应用托管所必需的。有关如何使用 CLI 命令进行设置的更多信息,请参阅 CLI 命令。
有关如何使用 Firebase 本地模拟器套件在本地测试您的应用的更多信息,请参阅模拟。
每周安装次数
297
代码仓库
GitHub 星标数
182
首次出现时间
2026年2月11日
安全审计
安装于
gemini-cli287
codex285
opencode285
github-copilot280
amp278
kimi-cli278
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.
Choose Firebase Hosting if:
Choose Firebase App Hosting if:
This is the recommended flow for most users.
Configure firebase.json with an apphosting block.
{
"apphosting": {
"backendId": "my-app-id",
"rootDir": "/",
"ignore": [
"node_modules",
".git",
"firebase-debug.log",
"firebase-debug.*.log",
"functions"
]
}
}
Create or edit apphosting.yaml- see Configuration for more information on how to do so.
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.
Run npx -y firebase-tools@latest deploy when you are ready to deploy.
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.
See Emulation for more information on how to test your app locally using the Firebase Local Emulator Suite.
Weekly Installs
297
Repository
GitHub Stars
182
First Seen
Feb 11, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli287
codex285
opencode285
github-copilot280
amp278
kimi-cli278