@opennextjs/cloudflare 1.5.2 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13,6 +13,7 @@ export class D1NextModeTagCache {
|
|
|
13
13
|
try {
|
|
14
14
|
const result = await db
|
|
15
15
|
.prepare(`SELECT MAX(revalidatedAt) AS time FROM revalidations WHERE tag IN (${tags.map(() => "?").join(", ")})`)
|
|
16
|
+
.bind(...tags.map((tag) => this.getCacheKey(tag)))
|
|
16
17
|
.run();
|
|
17
18
|
if (result.results.length === 0)
|
|
18
19
|
return 0;
|
package/dist/cli/build/build.js
CHANGED
|
@@ -74,4 +74,11 @@ function ensureNextjsVersionSupported(options) {
|
|
|
74
74
|
logger.error("Next.js version unsupported, please upgrade to version 14.2 or greater.");
|
|
75
75
|
process.exit(1);
|
|
76
76
|
}
|
|
77
|
+
// TODO: remove when 15.4 is supported
|
|
78
|
+
// Note: `e2e/experimental` is on 15.4.0-canary.14 which works
|
|
79
|
+
if (!options.appPath.endsWith("opennextjs-cloudflare/examples/e2e/experimental") &&
|
|
80
|
+
buildHelper.compareSemver(options.nextVersion, ">=", "15.4.0")) {
|
|
81
|
+
logger.error("Next.js version unsupported, the latest supported version is 15.3");
|
|
82
|
+
process.exit(1);
|
|
83
|
+
}
|
|
77
84
|
}
|