fix: downgrade Next.js to 16.1.5 for OpenNext compatibility#105
Merged
icanvardar merged 1 commit intomainfrom Mar 23, 2026
Merged
fix: downgrade Next.js to 16.1.5 for OpenNext compatibility#105icanvardar merged 1 commit intomainfrom
icanvardar merged 1 commit intomainfrom
Conversation
Next.js 16.2.0 introduced prefetch-hints.json which crashes on Cloudflare Workers with @opennextjs/cloudflare@1.17.1. The fix (opennextjs/opennextjs-cloudflare#1151) is merged but not yet released to npm.
Greptile SummaryThis PR performs a targeted Next.js downgrade from Key changes:
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Dev as Developer
participant Next as Next.js
participant OpenNext as @opennextjs/cloudflare
participant CF as Cloudflare Workers
Dev->>Next: Build (16.2.0)
Next-->>OpenNext: loadManifest(prefetch-hints.json)
OpenNext-->>CF: ❌ Crash: Unexpected loadManifest call
Note over Next,OpenNext: Downgrade Next.js to 16.1.5
Dev->>Next: Build (16.1.5)
Next-->>OpenNext: Compatible build output
OpenNext-->>CF: ✅ Deploy succeeds
Reviews (1): Last reviewed commit: "fix: downgrade Next.js to 16.1.5 for Ope..." | Re-trigger Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Unexpected loadManifest(/.next/server/prefetch-hints.json) call!@opennextjs/cloudflare@1.17.1(fix merged but unreleased)@opennextjs/cloudflarereleases a version with the fix