EAS 托管

EAS Hosting 是一种快速部署使用 Expo Router 库和 React Native Web 构建的 Web 项目的服务。


EAS Hosting 目前处于预览阶段。如果你有任何问题或反馈,请发布到我们的 Discord 通道或发送电子邮件至 hosting@expo.dev

EAS Hosting 是一种快速部署使用 Expo 路由 和 React Native Web 构建的 Web 项目的服务。它与 Expo CLI 无缝集成,允许你自动部署 API 路由、服务器功能和服务器端资源。

¥EAS Hosting is a service for quickly deploying your web projects built using Expo Router and React Native web. It seamlessly integrates with the Expo CLI, allowing you to automate the deployment of API routes, server functions, and server-side assets.

Hosting 支持 static服务器模式 Web 项目,并提供从 npx create-expo-app 到具有 API 路由的完全部署的 Web 应用的最快路径。

¥Hosting supports both static and server mode web projects and offers the fastest path from npx create-expo-app to a fully deployed web app with API routes.

开始使用

¥Get started

创建你的第一个部署

在不到一分钟的时间内,从新应用到已部署的网站。

分配部署别名

创建别名并将部署提升到生产。

配置环境变量

在你的 Web 和服务器代码中使用环境变量。

自定义域

为你的生产部署设置自定义域。

API 路由

在 EAS Hosting 仪表板上检查来自 API 路由的请求。

使用 EAS 工作流程部署

使用 EAS 工作流自动部署。