171 字
1 分钟
这个博客的搭建

fuwari#

在fuwari根目录下创建wrangler.jsonc,输入

{
"name": "blog",
"compatibility_date": "2025-07-13",
"assets": {
"directory": "./dist"
}
}

name:worker名字

cloudflare worker#

在worker中连接到你的博客github项目

部署命令

部署完成后在路由里添加yousite.com/*

添加路由

edgeone#

使用edgeone加速workers.dev(其实可以加速任意绑定到cloudflare的cname,比如说大佬配置好的优选,区别不大)

edgeone

域名解析#

使用阿里云dns分区域解析

dns

最终表现#

itdog

R2存储桶#

然后打开你的网站,你会发现r2的流量并不是走的edgeone,我们来解决这个问题 打开cloudflare,点开规则>Cloud Connector

cloudconnector

然后在eo加速源站,dns分流

这个博客的搭建
https://www.fulie.top/posts/使用cloudflare-worker搭建博客并用edgeone加速/
作者
fulie
发布于
2025-07-13
许可协议
CC BY-NC-SA 4.0
分享文章