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

增加cloudflare.com部署 #91

Open
tiengming opened this issue Jul 19, 2024 · 1 comment
Open

增加cloudflare.com部署 #91

tiengming opened this issue Jul 19, 2024 · 1 comment

Comments

@tiengming
Copy link

tiengming commented Jul 19, 2024

流程

  1. fork本仓库
  2. 进入workers-and-pages,点击创建
  3. 点击page,链接到git
  4. 构建命令:
    yarn run build
    构建输出目录:
    /dist
    根目录:
    /
  5. 保存并部署
  6. 国内访问workers-and-pages可能无法访问,建议进行添加自定义域,比如:https://markdown.buxiantang.top/

如果部署失败!出现下面错误日志:

YN0070: Migrating from Yarn 1; automatically enabling the compatibility node-modules linker 👍

不必删除本部署,前往本page的设置,按照下方图片进行设置

  1. 修改构建版本
    修改构建版本
  2. 重新部署
    07406f8197a87ced7d95c.jpg

采用cloudflare.com部署优势

  1. 全球分布式的网络
  2. 当github仓库发生变动时,可自动触发构建部署,省时省力
@nicejade
Copy link
Owner

@tiengming NICE JOB .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants