Github+Cloudflare Pages图床部署

将Github的图床部署到Cloudflare的Pages,可以享受cloudflare的加速服务,速度虽然比不上国内,但比起github原生的速度还是要强上不少。过程很简单,在Cloudflare新建一个Pages项目,链接到Github账户,选择图床源,一路下一步,完成部署。
然后设置自定义域名,例如img.ycyc.win,使用cname协议解析到Cloudflare分配的默认项目地址。
image.png

例如原来在Github的图片地址为’https://raw.githubusercontent.com/miaoyanginfo/hexo-img/main/img/202409131248235.png
现在替换为‘https://img.ycyc.win/img/202409131248235.png’ 即可。