Skip to content

Commit 5025713

Browse files
authored
Error when Next >= 15.4 (#807)
1 parent 72d8d5b commit 5025713

File tree

1 file changed

+9
-0
lines changed
  • packages/cloudflare/src/cli/build

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,13 @@ function ensureNextjsVersionSupported(options: buildHelper.BuildOptions) {
9797
logger.error("Next.js version unsupported, please upgrade to version 14.2 or greater.");
9898
process.exit(1);
9999
}
100+
// TODO: remove when 15.4 is supported
101+
// Note: `e2e/experimental` is on 15.4.0-canary.14 which works
102+
if (
103+
!options.appPath.endsWith("opennextjs-cloudflare/examples/e2e/experimental") &&
104+
buildHelper.compareSemver(options.nextVersion, ">=", "15.4.0")
105+
) {
106+
logger.error("Next.js version unsupported, the latest supported version is 15.3");
107+
process.exit(1);
108+
}
100109
}

0 commit comments

Comments
 (0)