博客搬家记
3min 2026/7/14 2026/7/14
Vercel 到期了,不得不把博客搬到其他CDN了。从AI哪里打听了个CDN,看起来还行...用了几天感觉挺亏的。但既来之,则安之吧
我的后端是部署到我家里云的,不想用云数据库,感觉不太好迁移,因此博客后端自然是部署在家里云的。
但好巧不巧的是 Vercel 的 Fetch 也是算时间的,反代一会自然而然免费费用就不够了。
为了提高用户体验,我的代码高亮是 SSR 阶段做的。 shiki 资源大户,自然是超出了 Cloudflare Workers 的时间限制的。
再加上我域名 DNS 是托管在 Cloudflare 上的,没法做优选,国内访问速度不太好说...于是我就没选择 Cloudflare
问 AI 哪家CDN在国内网速好,它给我推荐了个 BunnyCDN ,网上一搜 BunnyCDN:最适合WordPress站点的CDN,互联网自由的推动者
评价这么高?虽然我不用 WordPress 但估计应该也不会差到哪里去,就傻乎乎的往这里搬家了
测速一跑,一片非黄即橙...这延迟不低了。不过好在大部分节点都可以访问,勉强算及格吧,并非不能使用。
作为一个需要 Token 的 API ,它竟然会报 429 着实超出了我的想想。
[request error] [unhandled] [POST] http://localhost/api/revalidate/catalog
FetchError: [POST] "https://api.bunny.net/purge?url=https:%2F%2Fleenet.xyz%2Fpost%2Fbuild-smart-home-with-rp": 429 Too Many Requests
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
... 8 lines matching cause stack trace ...
at async b$1 (file:///home/lee/project/The-World-Of-Lee/.output/server/chunks/nitro/nitro.mjs:693:7042) {
cause: FetchError: [POST] "https://api.bunny.net/purge?url=https:%2F%2Fleenet.xyz%2Fpost%2Fbuild-smart-home-with-rp": 429 Too Many Requests
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async bunny.revalidate (file:///home/lee/project/The-World-Of-Lee/.output/server/chunks/nitro/nitro.mjs:5277:7)
at async bunny.pageProcessor (file:///home/lee/project/The-World-Of-Lee/.output/server/chunks/nitro/nitro.mjs:5273:7)
at async bunny.page (file:///home/lee/project/The-World-Of-Lee/.output/server/chunks/nitro/nitro.mjs:5231:12)
at async Promise.all (index 16)
at async file:///home/lee/project/The-World-Of-Lee/.output/server/chunks/routes/api/revalidate/catalog.post.mjs:28:3
at async Object.handler (file:///home/lee/project/The-World-Of-Lee/.output/server/chunks/_/webhook.mjs:7:10)
at async Object.handler (file:///home/lee/project/The-World-Of-Lee/.output/server/chunks/nitro/nitro.mjs:1775:19)
at async toNodeHandle (file:///home/lee/project/The-World-Of-Lee/.output/server/chunks/nitro/nitro.mjs:2046:7)
at async b$1 (file:///home/lee/project/The-World-Of-Lee/.output/server/chunks/nitro/nitro.mjs:693:7042),
statusCode: 429,
fatal: false,
unhandled: true,
statusMessage: 'Too Many Requests',
data: { reason: 'rate_limited', type: 'prefix', retry_after_seconds: 1 }
作为一个建站半年的新博主,我仅有20+的文章,就可以触发 429 ,不敢想象,面对有着上百页的商业网站,它的API会有多糟糕
就在我傻乎乎的往这里面充了10$后,刷到了这篇文章
我把静态博客部署在服务器上了(:!香港服务器无CDN竟然可以全绿!...
不过往好处想想,我这10$够我用不知道多少年,香港服务器半年多就不够了
既来之则安之罢...
INFO
加载ing
