Skip to content

Commit 7ccf5ea

Browse files
Version Packages (#1161)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent a143282 commit 7ccf5ea

3 files changed

Lines changed: 29 additions & 28 deletions

File tree

.changeset/fix-load-manifest-graceful-fallback.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

packages/cloudflare/CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# @opennextjs/cloudflare
22

3+
## 1.17.2
4+
5+
### Patch Changes
6+
7+
- [#1151](https://github.com/opennextjs/opennextjs-cloudflare/pull/1151) [`a143282`](https://github.com/opennextjs/opennextjs-cloudflare/commit/a1432820bd8f4f867888758380f5e5cc20fa4be0) Thanks [@nathanschram](https://github.com/nathanschram)! - fix: handle known optional manifests gracefully in loadManifest/evalManifest patches
8+
9+
Next.js loads certain manifests with `handleMissing: true` (returning `{}` when the file doesn't
10+
exist). The adapter's build-time glob scan doesn't find these files when they're conditionally
11+
generated, so the patched function threw at runtime, crashing dynamic routes with 500.
12+
13+
Instead of a blanket catch-all, handle only the specific optional manifests from Next.js
14+
`route-module.ts`:
15+
16+
- `react-loadable-manifest` (Turbopack per-route, not all routes have dynamic imports)
17+
- `subresource-integrity-manifest` (only when `experimental.sri` configured)
18+
- `server-reference-manifest` (App Router only)
19+
- `dynamic-css-manifest` (Pages Router + Webpack only)
20+
- `fallback-build-manifest` (only for `/_error` page)
21+
- `prefetch-hints` (new in Next.js 16.2)
22+
- `_client-reference-manifest.js` (optional for static metadata routes, evalManifest)
23+
24+
Manifest matching strips `.json` before comparison since some Next.js constants omit
25+
the extension (`SUBRESOURCE_INTEGRITY_MANIFEST`, `DYNAMIC_CSS_MANIFEST`, etc.).
26+
27+
Unknown manifests still throw to surface genuine errors.
28+
29+
Fixes #1141.
30+
331
## 1.17.1
432

533
### Patch Changes

packages/cloudflare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@opennextjs/cloudflare",
33
"description": "Cloudflare builder for next apps",
4-
"version": "1.17.1",
4+
"version": "1.17.2",
55
"type": "module",
66
"scripts": {
77
"clean": "rimraf dist",

0 commit comments

Comments
 (0)