7 posts in this category
Cloudflare 上的 OpenNext 将 ISR 缓存存储在 KV 中,每次部署都会悄悄地添加一组永不清理的键。以下是我的一个网站如何将每日 KV 存储成本从 0.50 美元降至不到 3 美分。
withRegionalCache 是 @opennextjs/cloudflare 附带的一个单行包装器。它在您的 KV 缓存前放置了一个 Workers Cache API 层,让您在缓存命中时跳过 D1 标签缓存查找。对于内容网站来说,这相当于每次请求都消耗实际 CPU 与几乎不做任何工作之间的区别。
在成功使用 OpenNext 将多个生产级别的 Next.js 网站部署到 Cloudflare 之后,我发现它在性能、成本和开发者体验方面是一个绝佳的组合。这就是为什么这个技术栈成为了我大多数新项目的首选。
如果你正在使用 OpenNext 在 Cloudflare Workers 上运行 Next.js 站点,并且因为不需要的 Durable Objects 而产生费用,这里是如何解决这个问题的方法。
I built a public step counter using Google Fit API and Cloudflare Workers. It shows my daily steps, weekly totals, and streak on my website. Here's how I did it and why public accountability works.
Found a subtle bug where translated blog posts loaded empty in production. The issue: calling getPostBySlug with 'en' locale to access translatedSlugs failed because the manifest doesn't store English in the localized object.
了解我如何利用 Next.js 和 AI 工具重构我的网站,选择现代开发而非传统的 WordPress。了解 AI 驱动开发的优势、性能提升,以及为何 Next.js 是开发者友好型、高性能网站的完美解决方案。
将最新文章和见解发送到您的收件箱。
Unsubscribe anytime. No spam, ever.