bot Lx
bot Lx
CDCloudflare Developers
Created by bot Lx on 9/23/2023 in #workers-help
How can I access R2 buckets binding when binding multiple buckets
will do!
13 replies
CDCloudflare Developers
Created by bot Lx on 9/23/2023 in #workers-help
How can I access R2 buckets binding when binding multiple buckets
hehe thanks for the help
13 replies
CDCloudflare Developers
Created by bot Lx on 9/23/2023 in #workers-help
How can I access R2 buckets binding when binding multiple buckets
its putting it in vars isnt it?
13 replies
CDCloudflare Developers
Created by bot Lx on 9/23/2023 in #workers-help
How can I access R2 buckets binding when binding multiple buckets
ah wait i see it now i think
13 replies
CDCloudflare Developers
Created by bot Lx on 9/23/2023 in #workers-help
How can I access R2 buckets binding when binding multiple buckets
not much there:
name = "storage"
main = "src/index.ts"
compatibility_date = "2023-09-18"
account_id = "xxx"

routes = [
{ pattern = "xxx", zone_name = "xxx" }
]
workers_dev = false

[vars]
SUPABASE_URL = "xxx"
SUPABASE_ANON_KEY = "xxx"

r2_buckets = [
{ binding = "Bucket1", bucket_name = "bucket1", preview_bucket_name = "bucket1" },
{ binding = "Bucket2", bucket_name = "bucket2", preview_bucket_name = "bucket2" }
]
name = "storage"
main = "src/index.ts"
compatibility_date = "2023-09-18"
account_id = "xxx"

routes = [
{ pattern = "xxx", zone_name = "xxx" }
]
workers_dev = false

[vars]
SUPABASE_URL = "xxx"
SUPABASE_ANON_KEY = "xxx"

r2_buckets = [
{ binding = "Bucket1", bucket_name = "bucket1", preview_bucket_name = "bucket1" },
{ binding = "Bucket2", bucket_name = "bucket2", preview_bucket_name = "bucket2" }
]
13 replies