Skip to content

Commit

Permalink
docs: update cloudflare deploy to V2 build system (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
j1g5awi authored Sep 25, 2024
1 parent 0a65f9e commit 1db600b
Showing 1 changed file with 4 additions and 10 deletions.
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

1 comment on commit 1db600b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://yun.valaxy.site as production
🚀 Deployed on https://66f43ab0badb270d17afbe72--valaxy.netlify.app

Please sign in to comment.