Skip to content

Commit 0060399

Browse files
Version Packages (#949)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent e0456c5 commit 0060399

File tree

5 files changed

+57
-61
lines changed

5 files changed

+57
-61
lines changed

.changeset/rare-ducks-sit.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

.changeset/rclone-batch-upload.md

Lines changed: 0 additions & 48 deletions
This file was deleted.

.changeset/thick-seas-walk.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/cloudflare/CHANGELOG.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,61 @@
11
# @opennextjs/cloudflare
22

3+
## 1.11.0
4+
5+
### Minor Changes
6+
7+
- [#925](https://github.com/opennextjs/opennextjs-cloudflare/pull/925) [`62fee71`](https://github.com/opennextjs/opennextjs-cloudflare/commit/62fee7139912360edcc8acbf4c9780981d0077bc) Thanks [@krzysztof-palka-monogo](https://github.com/krzysztof-palka-monogo)! - feature: optional batch upload for faster R2 cache population
8+
9+
This update adds optional batch upload support for R2 cache population, significantly improving upload performance for large caches when enabled via .env or environment variables.
10+
11+
**Key Changes:**
12+
13+
1. **Optional Batch Upload**: Configure R2 credentials via .env or environment variables to enable faster batch uploads:
14+
15+
- `R2_ACCESS_KEY_ID`
16+
- `R2_SECRET_ACCESS_KEY`
17+
- `CF_ACCOUNT_ID`
18+
19+
2. **Automatic Detection**: When credentials are detected, batch upload is automatically used for better performance
20+
3. **Smart Fallback**: If credentials are not configured, the CLI falls back to standard Wrangler uploads with a helpful message about enabling batch upload for better performance
21+
22+
**All deployment commands support batch upload:**
23+
24+
- `populateCache` - Explicit cache population
25+
- `deploy` - Deploy with cache population
26+
- `upload` - Upload version with cache population
27+
- `preview` - Preview with cache population
28+
29+
**Performance Benefits (when batch upload is enabled):**
30+
31+
- Parallel transfer capabilities (32 concurrent transfers)
32+
- Significantly faster for large caches
33+
- Reduced API calls to Cloudflare
34+
35+
**Usage:**
36+
37+
Add the credentials in a `.env`/`.dev.vars` file in your project root:
38+
39+
```bash
40+
R2_ACCESS_KEY_ID=your_key
41+
R2_SECRET_ACCESS_KEY=your_secret
42+
CF_ACCOUNT_ID=your_account
43+
```
44+
45+
You can also set the environment variables for CI builds.
46+
47+
**Note:**
48+
49+
You can follow documentation https://developers.cloudflare.com/r2/api/tokens/ for creating API tokens with appropriate permissions for R2 access.
50+
51+
### Patch Changes
52+
53+
- [#951](https://github.com/opennextjs/opennextjs-cloudflare/pull/951) [`e3aba83`](https://github.com/opennextjs/opennextjs-cloudflare/commit/e3aba83f37675f5c5edd07b9f8c8f431f67c8be7) Thanks [@vicb](https://github.com/vicb)! - bump `@opennextjs/aws` to 3.8.5
54+
55+
See details at <https://github.com/opennextjs/opennextjs-aws/releases/tag/v3.8.5>
56+
57+
- [#948](https://github.com/opennextjs/opennextjs-cloudflare/pull/948) [`0c655c3`](https://github.com/opennextjs/opennextjs-cloudflare/commit/0c655c3c019769bf31c6fc25db678cd13b05babe) Thanks [@vicb](https://github.com/vicb)! - refactor: do not create a wrangler config when a custom one is passed
58+
359
## 1.10.1
460

561
### Patch Changes

packages/cloudflare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@opennextjs/cloudflare",
33
"description": "Cloudflare builder for next apps",
4-
"version": "1.10.1",
4+
"version": "1.11.0",
55
"type": "module",
66
"scripts": {
77
"clean": "rimraf dist",

0 commit comments

Comments
 (0)