Skip to main content

r2_bucket_name

Function r2_bucket_name 

Source
pub fn r2_bucket_name(worker: &str, binding: &str) -> String
Expand description

P5 (#2323): the account-facing name of an R2 instance’s bucket, <worker>-<capability, kebab>: shop-cart and R2_ARCHIVES give shop-cart-archives. R2 bucket names are scoped to the account (not the Worker), so the Worker’s name carries the uniqueness. bynk deploy environment-qualifies it.