cloudinwind's blog
Astro-Pure Blog 多平台部署(2) - cloudflare pagesBlur image

接上一篇,现在已经有了 xx-blog 仓库

参考:部署你的 Astro 站点至 Cloudflare

1. 注册 cloudflare 账号#

2. 登录至 Cloudflare dashboard#

Compute (Workers) > Workers & Pages -> Create Application -> 不要直接连接 github,选择下面的 Get Start

然后 Import an existing Git repository -> 选择你想要部署的仓库(例如 xx-blog)-> Begin setup

配置项目:

  • Framework preset(框架预设):Astro
  • Build command(构建命令):npm run build
  • Build output directory(构建输出目录):dist
  • 重要:Variables and Secrets 中添加 DEPLOYMENT_PLATFORM,值为 cloudflare

3. 保存并部署,访问生产的链接#

Astro-Pure Blog 多平台部署(2) - cloudflare pages
https://cloudflare.cloudinwind4132.top/blog/rl-note-4
Author 云之痕
Published at December 13, 2025
Comment seems to stuck. Try to refresh?✨