firebase-app-hosting-basics by firebase/agent-skills
npx skills add https://github.com/firebase/agent-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 本地模拟器套件在本地测试您的应用程序的更多信息,请参阅模拟。
每周安装量
2.8K
仓库
GitHub 星标数
184
首次出现
2026年2月17日
安全审计
安装于
gemini-cli2.6K
codex1.7K
opencode1.7K
github-copilot1.7K
amp1.7K
kimi-cli1.7K
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
2.8K
Repository
GitHub Stars
184
First Seen
Feb 17, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli2.6K
codex1.7K
opencode1.7K
github-copilot1.7K
amp1.7K
kimi-cli1.7K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装