Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .changeset/rare-ducks-sit.md

This file was deleted.

48 changes: 0 additions & 48 deletions .changeset/rclone-batch-upload.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/thick-seas-walk.md

This file was deleted.

56 changes: 56 additions & 0 deletions packages/cloudflare/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,61 @@
# @opennextjs/cloudflare

## 1.11.0

### Minor Changes

- [#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

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.

**Key Changes:**

1. **Optional Batch Upload**: Configure R2 credentials via .env or environment variables to enable faster batch uploads:

- `R2_ACCESS_KEY_ID`
- `R2_SECRET_ACCESS_KEY`
- `CF_ACCOUNT_ID`

2. **Automatic Detection**: When credentials are detected, batch upload is automatically used for better performance
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

**All deployment commands support batch upload:**

- `populateCache` - Explicit cache population
- `deploy` - Deploy with cache population
- `upload` - Upload version with cache population
- `preview` - Preview with cache population

**Performance Benefits (when batch upload is enabled):**

- Parallel transfer capabilities (32 concurrent transfers)
- Significantly faster for large caches
- Reduced API calls to Cloudflare

**Usage:**

Add the credentials in a `.env`/`.dev.vars` file in your project root:

```bash
R2_ACCESS_KEY_ID=your_key
R2_SECRET_ACCESS_KEY=your_secret
CF_ACCOUNT_ID=your_account
```

You can also set the environment variables for CI builds.

**Note:**

You can follow documentation https://developers.cloudflare.com/r2/api/tokens/ for creating API tokens with appropriate permissions for R2 access.

### Patch Changes

- [#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

See details at <https://github.com/opennextjs/opennextjs-aws/releases/tag/v3.8.5>

- [#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

## 1.10.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cloudflare/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@opennextjs/cloudflare",
"description": "Cloudflare builder for next apps",
"version": "1.10.1",
"version": "1.11.0",
"type": "module",
"scripts": {
"clean": "rimraf dist",
Expand Down