Skip to content

fix(patches): include preview-props.json in loadManifest glob for Next.js 16.4 - #1356

Open
chargome wants to merge 1 commit into
opennextjs:mainfrom
chargome:fix/preview-props-manifest
Open

fix(patches): include preview-props.json in loadManifest glob for Next.js 16.4#1356
chargome wants to merge 1 commit into
opennextjs:mainfrom
chargome:fix/preview-props-manifest

Conversation

@chargome

@chargome chargome commented Aug 24, 2026

Copy link
Copy Markdown

Problem

Next.js 16.4 moved preview props out of prerender-manifest.json into a standalone .next/server/preview-props.json, loaded unconditionally by NextNodeServer.getPreviewProps(). Its name doesn't end in -manifest, so the glob in load-manifest.ts misses it and every dynamic route 500s with Unexpected loadManifest(/.next/server/preview-props.json) call!.

Fix

Add preview-props to the glob, as #1160 did for prefetch-hints. Not the return {} fallback from #1151 — that's for optional manifests; this one is loaded unconditionally and holds the real draft-mode keys, so it has to be inlined.

Fixes #1355.

🤖 Generated with Claude Code


Open in Devin Review

…t.js 16.4

Next.js 16.4 moved preview props out of prerender-manifest.json into a
standalone .next/server/preview-props.json, loaded unconditionally by
NextNodeServer.getPreviewProps(). Its name doesn't end in -manifest, so
the glob in load-manifest.ts missed it and every dynamic route 500d.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Aug 24, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 346d5fd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@opennextjs/cloudflare Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Unexpected loadManifest(/.next/server/preview-props.json) call on Next.js 16.4 canary

1 participant