Skip to content

Commit 7b76423

Browse files
Configure production KV binding for workouts worker (#38)
- add explicit WORKOUTS KV binding for the production environment - document development vs production KV IDs in the worker config ------ [Codex Task](https://chatgpt.com/codex/tasks/task_e_69237937647c8325be7f1a690e7780de)
1 parent 31f155d commit 7b76423

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

cloudflare-workers/workouts/wrangler.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@ main = "worker.js"
33
compatibility_date = "2025-11-23"
44

55
kv_namespaces = [
6+
# Development KV binding
67
{ binding = "WORKOUTS", id = "workouts_kv" }
78
]
89

910
[env.production]
1011
name = "workouts-production"
12+
# Ensure production deployments keep the WORKOUTS KV binding intact.
13+
kv_namespaces = [
14+
{ binding = "WORKOUTS", id = "workouts_kv" }
15+
]

0 commit comments

Comments
 (0)