@@ -3,34 +3,30 @@ name = "aibtcdev-cache"
33main = " src/index.ts"
44compatibility_date = " 2024-11-09"
55account_id = " 96280594e2b905d4dc40b3c744149710"
6- # Default environment (preview)
6+ # Environment configurations
77[env .preview ]
88routes = []
9+ [[env .preview .kv_namespaces ]]
10+ binding = " AIBTCDEV_CACHE_KV"
11+ id = " beb302875cfa41eb86fb24eeb3b9373a"
912
10- # Staging environment
1113[env .staging ]
1214routes = [{ pattern = " cache-staging.aibtc.dev" , custom_domain = true }]
15+ [[env .staging .kv_namespaces ]]
16+ binding = " AIBTCDEV_CACHE_KV"
17+ id = " beb302875cfa41eb86fb24eeb3b9373a"
1318
14- # Production environment
1519[env .production ]
1620routes = [{ pattern = " cache.aibtc.dev" , custom_domain = true }]
21+ [[env .production .kv_namespaces ]]
22+ binding = " AIBTCDEV_CACHE_KV"
23+ id = " 83cf92a7f68247c7bf1279f8a6163046"
1724
1825# Workers Logs
19- # Docs: https://developers.cloudflare.com/workers/observability/logs/workers-logs/
20- # Configuration: https://developers.cloudflare.com/workers/observability/logs/workers-logs/#enable-workers-logs
2126[observability ]
2227enabled = true
2328
24- # Want to use this with `npm run cf-typegen` but it overwrites the secrets
25- # Will manage manually for now
26- # [vars]
27- # HIRO_API_KEY = ""
28- # SUPABASE_URL = ""
29- # SUPABASE_SERVICE_KEY = ""
30-
31- # Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
32- # Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
33- # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects
29+ # Durable Object bindings
3430[[durable_objects .bindings ]]
3531name = " HIRO_API_DO"
3632class_name = " HiroApiDO"
@@ -47,8 +43,7 @@ class_name = "SupabaseDO"
4743name = " BNS_API_DO"
4844class_name = " BnsApiDO"
4945
50- # Durable Object migrations.
51- # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#migrations
46+ # Durable Object migrations
5247[[migrations ]]
5348tag = " v1"
5449new_classes = [" HiroApiDO" ]
@@ -64,21 +59,3 @@ new_classes = ["StxCityDO"]
6459[[migrations ]]
6560tag = " v4"
6661new_classes = [" BnsApiDO" ]
67-
68- # KV Namespace bindings for different environments
69- # Default/Preview environment
70- [[kv_namespaces ]]
71- binding = " AIBTCDEV_CACHE_KV"
72- id = " beb302875cfa41eb86fb24eeb3b9373a"
73-
74- # Staging environment
75- [env .staging ]
76- [[kv_namespaces ]]
77- binding = " AIBTCDEV_CACHE_KV"
78- id = " beb302875cfa41eb86fb24eeb3b9373a"
79-
80- # Production environment
81- [env .production ]
82- [[kv_namespaces ]]
83- binding = " AIBTCDEV_CACHE_KV"
84- id = " 83cf92a7f68247c7bf1279f8a6163046"
0 commit comments