~/talk

I tried to host Next.js on Cloudflare (and lived to regret it)

Talkat React India 2024 · 2024-10-15..10-19· [frontend-architecture]
links:none on file
slides:none on file

A production Next.js site deploys fast with Cloudflare Pages and Wrangler, but real problems emerge: the Edge runtime runs on Cloudflare Workers, so fetch no-store ignored breaks attempts to opt out of Next.js caching; the build enforces a 5 MB bundle limit that blocks some legacy apps; environment variables require workarounds or public prefixes; on-demand revalidation only clears a single data center so fixes need a per-datacenter cache invalidation hack (query-string busting); Pages also lacks logging/observability integrations and sometimes fails builds after upstream dependency updates.

AI-written summary · about

  1. 0:00Intro
  2. 1:40Buy vs Build
  3. 3:50The Good
  4. 4:52Continuous Deployment
  5. 6:25Edge Runtime
  6. 6:53Caching
  7. 8:26Size limitations
  8. 9:10Environment variables
  9. 10:32Story time
  10. 14:15Ugly parts
  11. 17:07What I would do
  12. 19:05Wrap up
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.