@opennextjs/cloudflare 1.14.7 → 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.
@@ -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
- runWrangler(buildOpts, ["r2 bulk put", bucket, `--filename ${quoteShellMeta(listFile)}`, `--concurrency ${concurrency}`], {
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.7",
4
+ "version": "1.14.8",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "opennextjs-cloudflare": "dist/cli/index.js"