mirror of
https://github.com/tiennm99/claude-status-webhook.git
synced 2026-04-17 13:21:01 +00:00
refactor: update bindings to match CF resource names
KV binding: claude_status, Queue binding: claude-status. Real KV namespace ID configured with remote flag.
This commit is contained in:
@@ -1,19 +1,30 @@
|
||||
{
|
||||
"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
|
||||
"name": "claude-status-webhook",
|
||||
"main": "src/index.js",
|
||||
"compatibility_date": "2024-12-01",
|
||||
"kv_namespaces": [
|
||||
{
|
||||
"binding": "claude_status",
|
||||
"id": "d026d63d84bf49268364deb27d3dc28a",
|
||||
"remote": true
|
||||
}
|
||||
],
|
||||
"queues": {
|
||||
"producers": [
|
||||
{
|
||||
"binding": "claude-status",
|
||||
"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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user