Skip to content

Missing jurisdiction in binding examples (R2) #24006

@Mael-Abgrall

Description

@Mael-Abgrall

Existing documentation URL(s)

In the tutorial on how to use R2 with bindings, there is a missing bit of important documentation (this page https://developers.cloudflare.com/r2/api/workers/workers-api-usage/#3-bind-your-bucket-to-a-worker)

Wrangler CLI will refuse to deploy when the jurisdiction is missing and the bucket is using regional services

What changes are you suggesting?

add to the doc the following:

{
  "r2_buckets": [
    {
      "binding": "MY_BUCKET",
      "bucket_name": "<YOUR_BUCKET_NAME>"
      "jurisdiction": "eu", // When the bucket is using regional services, leave empty otherwise
    }
  ]
}

Additional information

No response

Metadata

Metadata

Labels

content:editRequest for content editsdocumentationDocumentation editsproduct:r2R2 object storage: https://developers.cloudflare.com/r2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions