教程
Vite

部署 Vite

在 Zeabur 上部署你的 Vite 应用。

第一步: 创建 Vite 应用(可选)

设备要求:

  • Vite 需要 Node.js 版本 14.18+,16+。然而,有些模板需要依赖更高的 Node 版本才能正常运行,当你的包管理器发出警告时,请注意升级你的 Node 版本。

打开终端,输入

npx create vite@latest
# or
yarn create vite
# or
pnpm create vite

创建完毕后,为其初始化一个 Git 仓库并部署到你的 GitHub 上。

第二步:部署 Vite 应用

在你的项目中,点击 Deploy service 或者 Add new service 按钮,并选择 Deploy your source code.

deploy

搜索想要部署的 Vite 应用仓库,并点击导入,你的 Vite 应用就将自动开始部署。