Skip to content

Commit f69787c

Browse files
authored
Warn when using Next 16 (#998)
1 parent 4d2271c commit f69787c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changeset/nine-rice-return.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@opennextjs/cloudflare": patch
3+
---
4+
5+
Warn when using Next 16

packages/cloudflare/src/cli/build/build.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,7 @@ function ensureNextjsVersionSupported(options: buildHelper.BuildOptions) {
101101
logger.error("Next.js version unsupported, please upgrade to version 14.2 or greater.");
102102
process.exit(1);
103103
}
104+
if (buildHelper.compareSemver(options.nextVersion, ">=", "16")) {
105+
logger.warn("Next.js 16 is not fully supported yet! Some features may not work as expected.");
106+
}
104107
}

0 commit comments

Comments
 (0)