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

Commit fafef0c

Browse files
committed
feat: Configure KV namespaces for different environments
1 parent a312b70 commit fafef0c

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

wrangler.toml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,20 @@ new_classes = ["StxCityDO"]
6565
tag = "v4"
6666
new_classes = ["BnsApiDO"]
6767

68-
# Bind a KV Namespace. Use KV as persistent storage for small key-value pairs.
69-
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#kv-namespaces
68+
# KV Namespace bindings for different environments
69+
# Default/Preview environment
7070
[[kv_namespaces]]
7171
binding = "AIBTCDEV_CACHE_KV"
72-
id = "89a4331f4e0d47da934eb16d8b2229fa"
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

Comments
 (0)