Files
claude-status-webhook/wrangler.jsonc
tiennm99 b3d1f5acb4 fix: rename KV binding to CLAUDE_STATUS and fix threadId nullish check
- Rename KV binding SUBSCRIBERS → CLAUDE_STATUS for consistent naming
- Fix || null → ?? null to preserve threadId 0 (General topic)
- Update KV namespace creation command in README
2026-04-08 23:14:26 +07:00

20 lines
531 B
JSON

{
"name": "claude-status-webhook",
"main": "src/index.js",
"compatibility_date": "2024-12-01",
"kv_namespaces": [
{ "binding": "CLAUDE_STATUS", "id": "<KV_NAMESPACE_ID>" }
],
"queues": {
"producers": [
{ "binding": "STATUS_QUEUE", "queue": "claude-status" }
],
"consumers": [
{ "queue": "claude-status", "max_batch_size": 30, "max_retries": 3 }
]
}
// Secrets (set via `wrangler secret put`):
// BOT_TOKEN - Telegram bot token
// WEBHOOK_SECRET - Statuspage webhook URL secret
}