From 6b914e52c8c8435a006eb2479a62597f5bb44b42 Mon Sep 17 00:00:00 2001 From: Mateusz Grab Date: Fri, 6 Feb 2026 18:54:45 +0100 Subject: [PATCH] Update documentation to reflect approach for R2 upload --- pages/cloudflare/cli.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/cloudflare/cli.mdx b/pages/cloudflare/cli.mdx index 61440ae..5d70b85 100644 --- a/pages/cloudflare/cli.mdx +++ b/pages/cloudflare/cli.mdx @@ -24,11 +24,11 @@ It populates the configured [Open Next cache components](/cloudflare/caching) so -From version 1.13.0 of the Cloudflare adapter, R2 batch uploads are supported out of the box for preview and deploy without any additional setup. +From version 1.13.0 of the Cloudflare adapter, R2 batch uploads are supported out of the box for preview and deploy without any additional setup. However this approach uses under the hood `wrangler r2 bulk put` command, which in the end can be affected by [API token rate limits](https://developers.cloudflare.com/fundamentals/api/reference/limits/). -Before version 1.13.0 of the Cloudflare adapter, the `populateCache` command was supporting R2 batch uploads via `rclone` which required the following additional setup: +For websites that need to bypass API token rate limits, Cloudflare adapter's `populateCache` command (before version 1.13.0 and since version 1.16.4) is supporting R2 batch uploads via `rclone` which requires the following additional setup: -The `populateCache` command supports R2 batching to speed up the upload of large number of files. To enable R2 batching, you need to create an R2 Account API token as described [in the docs](https://developers.cloudflare.com/r2/api/tokens/) and provide the following environment variables: +You need to create an R2 Account API token as described [in the docs](https://developers.cloudflare.com/r2/api/tokens/) and provide the following environment variables: - `R2_ACCESS_KEY_ID`: The access key ID of the R2 API token - `R2_SECRET_ACCESS_KEY`: The secret access key of the R2 API token