Skip to content

Commit 7c99feb

Browse files
authored
Disable background route preloading for Next >= 14 (#896)
1 parent f837514 commit 7c99feb

File tree

3 files changed

+667
-6
lines changed

3 files changed

+667
-6
lines changed

.changeset/giant-feet-share.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@opennextjs/aws": patch
3+
---
4+
5+
Disable background route preloading for Next >= 14

packages/open-next/src/build/patch/patches/patchNextServer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export const patchNextServer: CodePatcher = {
118118
},
119119
// Disable Next background preloading done at creation of `NextServer`
120120
{
121-
versions: ">=15.0.0",
121+
versions: ">=14.0.0",
122122
field: {
123123
pathFilter,
124124
contentFilter: /this\.nextConfig\.experimental\.preloadEntriesOnStart/,

0 commit comments

Comments
 (0)