@opennextjs/cloudflare 1.14.6 → 1.14.8
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.
|
@@ -83,7 +83,11 @@ fix: |-
|
|
|
83
83
|
export function createComposableCacheHandlersRule(handlerPath) {
|
|
84
84
|
return `
|
|
85
85
|
rule:
|
|
86
|
-
|
|
86
|
+
# matches
|
|
87
|
+
# - const { cacheHandlers } = this.nextConfig.experimental; pre Next 16
|
|
88
|
+
# - const { cacheMaxMemorySize, cacheHandlers } = this.nextConfig; from Next 16
|
|
89
|
+
kind: lexical_declaration
|
|
90
|
+
regex: cacheHandlers
|
|
87
91
|
inside:
|
|
88
92
|
kind: method_definition
|
|
89
93
|
has:
|
|
@@ -130,7 +130,14 @@ async function populateR2IncrementalCache(buildOpts, config, populateCacheOption
|
|
|
130
130
|
const listFile = path.join(tempDir, `r2-bulk-list.json`);
|
|
131
131
|
fs.writeFileSync(listFile, JSON.stringify(objectList));
|
|
132
132
|
const concurrency = Math.max(1, populateCacheOptions.cacheChunkSize ?? 50);
|
|
133
|
-
|
|
133
|
+
const jurisdiction = binding.jurisdiction ? `--jurisdiction ${binding.jurisdiction}` : "";
|
|
134
|
+
runWrangler(buildOpts, [
|
|
135
|
+
"r2 bulk put",
|
|
136
|
+
bucket,
|
|
137
|
+
`--filename ${quoteShellMeta(listFile)}`,
|
|
138
|
+
`--concurrency ${concurrency}`,
|
|
139
|
+
jurisdiction,
|
|
140
|
+
], {
|
|
134
141
|
target: populateCacheOptions.target,
|
|
135
142
|
configPath: populateCacheOptions.wranglerConfigPath,
|
|
136
143
|
// R2 does not support the environment flag and results in the following error:
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opennextjs/cloudflare",
|
|
3
3
|
"description": "Cloudflare builder for next apps",
|
|
4
|
-
"version": "1.14.
|
|
4
|
+
"version": "1.14.8",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"opennextjs-cloudflare": "dist/cli/index.js"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@ast-grep/napi": "0.40.0",
|
|
46
46
|
"@dotenvx/dotenvx": "1.31.0",
|
|
47
|
-
"@opennextjs/aws": "3.9.
|
|
47
|
+
"@opennextjs/aws": "3.9.7",
|
|
48
48
|
"cloudflare": "^4.4.1",
|
|
49
49
|
"enquirer": "^2.4.1",
|
|
50
50
|
"glob": "^12.0.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"yargs": "^18.0.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@cloudflare/workers-types": "^4.
|
|
55
|
+
"@cloudflare/workers-types": "^4.20251202.0",
|
|
56
56
|
"@eslint/js": "^9.11.1",
|
|
57
57
|
"@tsconfig/strictest": "^2.0.5",
|
|
58
58
|
"@types/mock-fs": "^4.13.4",
|