Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update cloudflare deploy to V2 build system #458

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions docs/pages/guide/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,8 @@ When you use `pnpm create valaxy` to create a template project, it contains the
- 登录你的 Cloudflare 账号,导航到 “Pages” 页面。
- 点击 `创建项目`、`连接到 Git`,选择你的 GitHub 或者 GitLab 仓库,并点击 `开始设置`。
- 选择你的部署分支。
- 将 `构建命令` 设置为 `npm run build` 。
- 将 `构建输出目录` 设置为 `dist` 后添加一个环境变量。

> `NODE_VERSION`: `16` (设置 Node 版本)

- 将 `构建命令` 设置为 `pnpm build` 。
- 将 `构建输出目录` 设置为 `dist` 。
- 点击 `保存并部署`。
:::

Expand All @@ -153,11 +150,8 @@ When you use `pnpm create valaxy` to create a template project, it contains the
- Login to your Cloudflare account and navigate to "Pages" page.
- Click `Create a project` and `Connect to Git`, then select your GitHub or GitLab repository and click `Begin setup`.
- Select your Production branch.
- Set `Build output directory` to `npm run build` .
- Set `Build output directory` to `dist` and add an environment variable.

> `NODE_VERSION`: `16` (Set Node version)

- Set `Build output directory` to `pnpm build` .
- Set `Build output directory` to `dist` .
- Then click "Save and Deploy".
:::

Expand Down
Loading