If so, can you give an example of a wrangler.toml file bound to 2 different r2 buckets?
https://developers.cloudflare.com/workers/wrangler/configuration/
r2_buckets = [
{
# The binding name used to refer to the R2 bucket in the Worker.
binding = "BUCKET_ONE",
# The name of this R2 bucket at the edge.
bucket_name = "BUCKET_ONE",
# The preview name of this R2 used during `wrangler dev`
preview_bucket_name = "BUCKET_ONE"
},
{
# The binding name used to refer to the R2 bucket in the Worker.
binding = "BUCKET_TWO",
# The name of this R2 bucket at the edge.
bucket_name = "BUCKET_TWO",
# The preview name of this R2 used during `wrangler dev`
preview_bucket_name = "BUCKET_TWO"
}
]
2 Likes