WebHooker/wrangler.jsonc
RhenCloud 9eeafb8c15
chore(config): make R2 payload binding optional
Comment out the PAYLOAD bucket binding so deploys do not require R2;
the worker already falls back to KV queue:payload:* when env.PAYLOAD is unset.
2026-08-17 15:09:24 +08:00

67 lines
1.4 KiB
JSON

{
"name": "webhooker",
"account_id": "d157d30ef8fd945995f22bf99c5c67b9",
"main": ".output/server/index.mjs",
"compatibility_date": "2026-08-04",
"compatibility_flags": [
"nodejs_compat"
],
"build": {
"command": "bun run build"
},
"assets": {
"directory": "./.output/public",
"binding": "ASSETS",
"run_worker_first": true
},
"triggers": {
"crons": [
"*/5 * * * *"
]
},
"kv_namespaces": [
{
"binding": "KV",
"id": "a471e264837d4f51b077e078022f0cf0"
},
],
// Optional: R2 for oversized payloads. Uncomment after enabling R2 and running
// `bunx wrangler r2 bucket create webhooker-payloads`. Without this binding the
// worker falls back to KV `queue:payload:*`.
// "r2_buckets": [
// {
// "binding": "PAYLOAD",
// "bucket_name": "webhooker-payloads",
// }
// ],
"d1_databases": [
{
"binding": "DB",
"database_name": "webhooker",
"database_id": "8af03c0a-2f18-467c-9c04-7761997cf20b"
},
],
"queues": {
"producers": [
{
"queue": "webhooker-delivery",
"binding": "QUEUE",
}
],
"consumers": [
{
"queue": "webhooker-delivery",
"max_batch_size": 10,
"max_batch_timeout": 30,
"max_retries": 5,
"dead_letter_queue": "webhooker-delivery-dlq"
},
{
"queue": "webhooker-delivery-dlq",
"max_batch_size": 10,
"max_batch_timeout": 30,
"max_retries": 1
}
]
},
}