diff --git a/.changeset/rare-ducks-sit.md b/.changeset/rare-ducks-sit.md deleted file mode 100644 index c90cd3983..000000000 --- a/.changeset/rare-ducks-sit.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@opennextjs/cloudflare": patch ---- - -bump `@opennextjs/aws` to 3.8.5 - -See details at diff --git a/.changeset/rclone-batch-upload.md b/.changeset/rclone-batch-upload.md deleted file mode 100644 index 5e62856f8..000000000 --- a/.changeset/rclone-batch-upload.md +++ /dev/null @@ -1,48 +0,0 @@ ---- -"@opennextjs/cloudflare": minor ---- - -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. diff --git a/.changeset/thick-seas-walk.md b/.changeset/thick-seas-walk.md deleted file mode 100644 index 22e8e079f..000000000 --- a/.changeset/thick-seas-walk.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@opennextjs/cloudflare": patch ---- - -refactor: do not create a wrangler config when a custom one is passed diff --git a/packages/cloudflare/CHANGELOG.md b/packages/cloudflare/CHANGELOG.md index 58ec533cf..67890335f 100644 --- a/packages/cloudflare/CHANGELOG.md +++ b/packages/cloudflare/CHANGELOG.md @@ -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 + +- [#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 diff --git a/packages/cloudflare/package.json b/packages/cloudflare/package.json index a7a3a621d..348602303 100644 --- a/packages/cloudflare/package.json +++ b/packages/cloudflare/package.json @@ -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",