教程
使用 Cloudflare Worker 搭建博客并用 EdgeOne 加速
1 分钟阅读
# cloudflare
# fuwari
# edgeone

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,比如说大佬配置好的优选,区别不大)

域名解析
使用阿里云dns分区域解析

最终表现与测速

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

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