|
1 | 1 | # @opennextjs/cloudflare |
2 | 2 |
|
| 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 | + |
3 | 59 | ## 1.10.1 |
4 | 60 |
|
5 | 61 | ### Patch Changes |
|
0 commit comments