github opennextjs/opennextjs-cloudflare @opennextjs/cloudflare@1.19.4

12 hours ago

Patch Changes

  • #1221 a2679bf Thanks @mushan0x0! - Stop bundling @vercel/og (and its ~1.4 MiB resvg.wasm) when the app does not use it.

    Next.js's externalImport helper keeps a dynamic import("next/dist/compiled/@vercel/og/index.edge.js") in the emitted handler even for apps that never use ImageResponse / opengraph-image. Previously this module was marked as external when useOg was false, which left Wrangler to resolve and bundle it — pulling in ~800 KiB of JS plus resvg.wasm and pushing many Workers over the Cloudflare free-tier 3 MiB gzip limit.

    When useOg is false, the edge entry is now aliased to the existing throw.js shim, so the unreachable dynamic import resolves to a tiny module and the real @vercel/og library is no longer pulled into the Worker bundle.

  • #1208 2c5b472 Thanks @edmundhung! - Use OPEN_NEXT_BUILD_ID instead of NEXT_BUILD_ID in the cache keys.

    As of Next 16.2 NEXT_BUILD_ID is a fixed value when deploymentId is set explicitly.

    See opennextjs/opennextjs-aws#1144

  • #1193 1e8d232 Thanks @conico974! - Fix tag cache stale logic

Don't miss a new opennextjs-cloudflare release

NewReleases is sending notifications on new releases.