Expo 网站与 API 托管配置
原名:eas-hosting
整理 Expo Web 导出、API 路由、预览部署与域名配置。
中文 Skills 技能说明
Expo 项目要发布网站或 API 路由时,可以先分清本地导出与云托管。提供项目、运行时要求、接口约定、环境和域名,技能整理 Web 产物、API 方法、CORS、预览与 EAS Hosting 部署,交付配置草稿和验证步骤。需要 Expo 工具链及自有 EAS 账号;请求、带宽和套餐费用另计,境内访问及数据位置需核验。公开变量不能放密钥,保留原路由,上传构建产物、配置域名和生产发布需明确授权,不能用预览成功代替正式验收。
上游能力依据
上游原始适用说明: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 主要章节(保留原文标题):
- When to Use API Routes
- When NOT to Use API Routes
- File Structure
- Basic API Route
- HTTP Methods
- Dynamic Routes
- Request Handling
- Query Parameters
- Headers
- JSON Body
使用边界
先核对运行环境、账号、区域、依赖和最小权限。创建资源、改配置、发布服务或产生费用前必须让使用者确认。
作者、翻译与许可证
- 原作者
- 650 Industries, Inc.(Expo)与 expo/skills contributors
- 中文翻译
- CEOFans翻译
- 许可证
- MIT
- 上游来源
- https://github.com/expo/skills/tree/d5caf7fdf8b4854351f05841a7e315ac87ad7d24/plugins/expo/skills/eas-hosting
适用范围
平台:linux、macos、windows;标签:开发运维、Expo 网站与 API 托管配置、开源技能
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。