Skip to content

Commit e7ca7aa

Browse files
committed
Add LOGS_BUCKET R2 bucket configuration
Configured the LOGS_BUCKET R2 bucket for default, production, and staging environments in wrangler.toml. This enables access to the 'evergreen-api' bucket and its preview variant for all environments.
1 parent 9bac502 commit e7ca7aa

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/wrangler.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ kv_namespaces = [
1111
{ binding = "EVERGREEN", id = "037069e7da3e4944be2cbc97c92409a5", preview_id = "037069e7da3e4944be2cbc97c92409a5" }
1212
]
1313

14+
[[r2_buckets]]
15+
binding = "LOGS_BUCKET"
16+
bucket_name = "evergreen-api"
17+
preview_bucket_name = "evergreen-api-test"
18+
1419
[env.production]
1520
name = "evergreen-api"
1621
vars = { ENVIRONMENT = "production" }
@@ -21,6 +26,11 @@ kv_namespaces = [
2126
{ binding = "EVERGREEN", id = "037069e7da3e4944be2cbc97c92409a5", preview_id = "037069e7da3e4944be2cbc97c92409a5" }
2227
]
2328

29+
[[env.production.r2_buckets]]
30+
binding = "LOGS_BUCKET"
31+
bucket_name = "evergreen-api"
32+
preview_bucket_name = "evergreen-api-test"
33+
2434
[env.staging]
2535
name = "evergreen-api-staging"
2636
vars = { ENVIRONMENT = "staging" }
@@ -31,6 +41,11 @@ kv_namespaces = [
3141
{ binding = "EVERGREEN", id = "037069e7da3e4944be2cbc97c92409a5", preview_id = "037069e7da3e4944be2cbc97c92409a5" }
3242
]
3343

44+
[[env.staging.r2_buckets]]
45+
binding = "LOGS_BUCKET"
46+
bucket_name = "evergreen-api"
47+
preview_bucket_name = "evergreen-api-test"
48+
3449
[[r2_buckets]]
3550
binding = "LOGS_BUCKET"
3651
bucket_name = "evergreen-api"

0 commit comments

Comments
 (0)