You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stop bundling `@vercel/og` (and its ~1.4 MiB `resvg.wasm`) when the app does not use it.
6
+
7
+
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.
8
+
9
+
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.
Copy file name to clipboardExpand all lines: packages/cloudflare/CHANGELOG.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,32 @@
1
1
# @opennextjs/cloudflare
2
2
3
+
## 1.19.3
4
+
5
+
### Patch Changes
6
+
7
+
-[#1215](https://github.com/opennextjs/opennextjs-cloudflare/pull/1215)[`608893e`](https://github.com/opennextjs/opennextjs-cloudflare/commit/608893e63e1ee16d07c7ec42da979657cf2a62bd) Thanks [@vicb](https://github.com/vicb)! - Factor large repeated values in manifests
Remove process.version / process.versions.node overrides now that [unjs/unenv#493](https://github.com/unjs/unenv/pull/493) is merged and shipped in [[email protected]](https://github.com/unjs/unenv/releases/tag/v2.0.0-rc.16) (project uses 2.0.0-rc.24)
14
+
15
+
-[#1199](https://github.com/opennextjs/opennextjs-cloudflare/pull/1199)[`32594d6`](https://github.com/opennextjs/opennextjs-cloudflare/commit/32594d6a921c5ebdbe25f38635bb2c9dabdcbff1) Thanks [@SdSadat](https://github.com/SdSadat)! - fix(cli): fail fast in non-TTY environments instead of hanging on config-creation prompts
16
+
17
+
When `open-next.config.ts` (or `wrangler.(toml|json|jsonc)`) is missing, the CLI
18
+
prompts the user to auto-create it. In non-TTY environments (Cloudflare Workers
19
+
Builds, Docker, CI) the Enquirer prompt can't read stdin, so the build hangs or
20
+
fails with a truncated prompt and a cryptic exit code — the user sees
21
+
`? Missing required open-next.config.ts file, do you want to create one? (Y/n)`
22
+
and then ` ELIFECYCLE Command failed with exit code 13`, with no hint at what
23
+
to do next.
24
+
25
+
Now, in non-interactive environments, both prompts throw an actionable error
26
+
with the exact template to paste (for `open-next.config.ts`) or point at the
0 commit comments