eas-hosting
将 Expo 网站和 Expo Router API 路由部署到 EAS Hosting——导出 Web 包,运行 eas deploy 以获取生产环境和 PR 预览 URL,管理环境密钥和自定义域名,并在 Cloudflare Workers 运行时内工作。还涵盖编写 API 路由(+api.ts 处理程序、HTTP 方法、请求处理、CORS)。适用于部署 Expo Web 应用或 API 路由、设置 EAS Hosting,或配置托管环境和域名。不适用于原生构建或应用商店发布——这些请使用 eas-app-stores 技能。
机器翻译查看英文原文
Deploy Expo websites and Expo Router API routes to EAS Hosting - export the web bundle, run eas deploy for production and PR preview URLs, manage environment secrets and custom domains, and work within the Cloudflare Workers runtime. Also covers authoring API routes (+api.ts handlers, HTTP methods, request handling, CORS). Use when deploying an Expo web app or API routes, setting up EAS Hosting, or configuring hosting environments and domains. Not for native builds or store releases - use the eas-app-stores skill for those.
适用对象:移动应用开发。自动收录 · 待核查。
原作者说明节选
从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。
查看英文原文
原文涵盖的主题
- EAS Hosting
- When to Use API Routes
- When NOT to Use API Routes
- File Structure
- Basic API Route
- HTTP Methods
- Dynamic Routes
- Request Handling
EAS service - costs apply. EAS Hosting is a paid Expo Application Services product with free-tier limits; production deploys use your plan's request and bandwidth allowance. See https://expo.dev/pricing. Authoring API routes and exporting the web bundle are free and open source, and you can self-host the exported server output instead of EAS Hosting. EAS Hosting deploys your Expo web app and API routes to Expo's managed edge (Cloudflare Workers). Export the web bundle with npx expo export -p web and ship it with eas deploy - the same command deploys any Expo Router API routes bundled alongside it. This skill covers deploying a website, authoring API routes, and the hosting runtime; see the Deployment section below for the deploy workflow. Use API routes when you need: Server-side secrets — API keys, database credentials, or tokens that must never reach the client Database operations — Direct database queries that shouldn't be exposed Third-party API proxies — Hide API keys when calling external services (OpenAI, Stripe, etc.) Server-side validation — Validate data before database writes Webhook endpoints — Receive callbacks from services like Stripe or GitHub Rate limiting — Contro
这里只展示节选,请以完整原文和当前要求为准。
- 来源仓库
- expo/skills
- 源文件
- plugins/expo/skills/eas-hosting/SKILL.md
- 固定版本
- a9e5bd3fa00b4e61f632e43f85da73aee1942582
来源与内容状态
本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。
原作者:Expo Skills · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T14:01:42.017Z。
分类由名称、说明与路径规则生成,分类不代表已核实适配。
许可与权利归属
MIT。第三方内容及版权归原作者,使用条件以原文为准。
许可原文 ↗本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。
限制与注意事项
- 元数据收录不代表本站已经安装、适配、实测或进行安全审查。