Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

Commit f65ac7a

Browse files
committed
refactor: Move Durable Object bindings to environment-specific sections
1 parent 4d58ff6 commit f65ac7a

1 file changed

Lines changed: 40 additions & 9 deletions

File tree

wrangler.toml

Lines changed: 40 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,39 +10,70 @@ routes = []
1010
binding = "AIBTCDEV_CACHE_KV"
1111
id = "beb302875cfa41eb86fb24eeb3b9373a"
1212

13+
[[env.preview.durable_objects.bindings]]
14+
name = "HIRO_API_DO"
15+
class_name = "HiroApiDO"
16+
17+
[[env.preview.durable_objects.bindings]]
18+
name = "STX_CITY_DO"
19+
class_name = "StxCityDO"
20+
21+
[[env.preview.durable_objects.bindings]]
22+
name = "SUPABASE_DO"
23+
class_name = "SupabaseDO"
24+
25+
[[env.preview.durable_objects.bindings]]
26+
name = "BNS_API_DO"
27+
class_name = "BnsApiDO"
28+
1329
[env.staging]
1430
routes = [{ pattern = "cache-staging.aibtc.dev", custom_domain = true }]
1531
[[env.staging.kv_namespaces]]
1632
binding = "AIBTCDEV_CACHE_KV"
1733
id = "beb302875cfa41eb86fb24eeb3b9373a"
1834

35+
[[env.staging.durable_objects.bindings]]
36+
name = "HIRO_API_DO"
37+
class_name = "HiroApiDO"
38+
39+
[[env.staging.durable_objects.bindings]]
40+
name = "STX_CITY_DO"
41+
class_name = "StxCityDO"
42+
43+
[[env.staging.durable_objects.bindings]]
44+
name = "SUPABASE_DO"
45+
class_name = "SupabaseDO"
46+
47+
[[env.staging.durable_objects.bindings]]
48+
name = "BNS_API_DO"
49+
class_name = "BnsApiDO"
50+
1951
[env.production]
2052
routes = [{ pattern = "cache.aibtc.dev", custom_domain = true }]
2153
[[env.production.kv_namespaces]]
2254
binding = "AIBTCDEV_CACHE_KV"
2355
id = "83cf92a7f68247c7bf1279f8a6163046"
2456

25-
# Workers Logs
26-
[observability]
27-
enabled = true
28-
29-
# Durable Object bindings
30-
[[durable_objects.bindings]]
57+
[[env.production.durable_objects.bindings]]
3158
name = "HIRO_API_DO"
3259
class_name = "HiroApiDO"
3360

34-
[[durable_objects.bindings]]
61+
[[env.production.durable_objects.bindings]]
3562
name = "STX_CITY_DO"
3663
class_name = "StxCityDO"
3764

38-
[[durable_objects.bindings]]
65+
[[env.production.durable_objects.bindings]]
3966
name = "SUPABASE_DO"
4067
class_name = "SupabaseDO"
4168

42-
[[durable_objects.bindings]]
69+
[[env.production.durable_objects.bindings]]
4370
name = "BNS_API_DO"
4471
class_name = "BnsApiDO"
4572

73+
# Workers Logs
74+
[observability]
75+
enabled = true
76+
4677
# Durable Object migrations
4778
[[migrations]]
4879
tag = "20250102"

0 commit comments

Comments
 (0)