Skip to content

Commit 4e78411

Browse files
committed
fixup! let me fix the patch
1 parent cafa77f commit 4e78411

File tree

5 files changed

+355
-108
lines changed

5 files changed

+355
-108
lines changed

examples/playground15/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"cf-typegen": "wrangler types --env-interface CloudflareEnv"
1717
},
1818
"dependencies": {
19-
"next": "^15.3.5",
19+
"next": "^15.4.5",
2020
"react": "^19.0.0",
2121
"react-dom": "^19.0.0"
2222
},

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,4 @@ 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-
}
109100
}

packages/cloudflare/src/cli/build/patches/plugins/route-module.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ test("patch the createSnapshot function", () => {
372372
{
373373
- let i2, { cacheHandler: a2 } = t10;
374374
+ const a2 = null;
375-
+i2 = require('.open-next/server-functions/default/cache.cjs').default;
375+
+let i2 = require('.open-next/server-functions/default/cache.cjs').default;
376376
if (a2) {
377377
let { formatDynamicImportPath: e11 } = r("./dist/esm/lib/format-dynamic-import-path.js");
378378
i2 = rn(await n5(e11(this.distDir, a2)));

packages/cloudflare/src/cli/build/patches/plugins/route-module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ rule:
5656
stopBy: end
5757
fix: |-
5858
const $HANDLER_PATH = null;
59-
$CACHE_HANDLER = require('${normalizePath(handlerPath)}').default;
59+
let $CACHE_HANDLER = require('${normalizePath(handlerPath)}').default;
6060
`;
6161
}

0 commit comments

Comments
 (0)