Skip to content
Open
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
6 changes: 3 additions & 3 deletions pages/cloudflare/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ It populates the configured [Open Next cache components](/cloudflare/caching) so

<Callout type='info'>

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
Expand Down