-
Notifications
You must be signed in to change notification settings - Fork 100
Description
Describe the bug
When building and previewing a Next.js app with next@canary (16.2.0-canary.53+) using @opennextjs/cloudflare, all dynamic
routes return 500 Internal Server Error at runtime. The error is thrown by the CF Workers runtime:
Error: Unexpected loadManifest(/.next/server/subresource-integrity-manifest.json) call!
Error: Unexpected loadManifest(/.next/server/app/api/[route]/react-loadable-manifest.json) call!
These manifest files were introduced in Next.js 16.2.0-canary and are not yet handled by @opennextjs/cloudflare, causing
the worker to crash on any request that triggers loadManifests().
Environment
- @opennextjs/cloudflare: 1.16.5
- next: 16.2.0-canary.53
- wrangler: 4.67.0
Steps to reproduce
- Create a Next.js app router project:
pnpm create next-app my-app --app
cd my-app - Add @opennextjs/cloudflare and upgrade Next.js to canary:
pnpm add @opennextjs/cloudflare
pnpm add next@canary - Create an open-next.config.ts and wrangler.jsonc as per the OpenNext Cloudflare docs.
- Build and preview:
pnpm opennextjs-cloudflare build
pnpm opennextjs-cloudflare preview - Navigate to any dynamic/SSR route — you'll receive a 500 with the following in wrangler logs:
✘ [ERROR] ⨯ Error: Unexpected loadManifest(/.next/server/subresource-integrity-manifest.json) call!
Expected behavior
Dynamic routes should render successfully. The new manifest files introduced in the canary
(subresource-integrity-manifest.json, per-route react-loadable-manifest.json) should either be bundled into the worker or
gracefully handled when not present.
@opennextjs/cloudflare version
1.16.5
Wrangler version
4.67.0
next info output
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:49 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6000
Available memory (MB): 32768
Available CPU cores: 10
Binaries:
Node: 20.19.2
npm: 10.8.2
Yarn: 1.22.22
pnpm: 9.15.9
Relevant Packages:
next: 16.2.0-canary.58 // Latest available version is detected (16.2.0-canary.58).
eslint-config-next: N/A
react: 19.1.0
react-dom: 19.1.0
typescript: 5.9.3
Next.js Config:
output: N/AAdditional context
No response