From 9eeafb8c15c290b1264de6b4f153b5f511d2434b Mon Sep 17 00:00:00 2001 From: RhenCloud Date: Mon, 17 Aug 2026 15:09:24 +0800 Subject: [PATCH] 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. --- wrangler.jsonc | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/wrangler.jsonc b/wrangler.jsonc index a493d8f..27f2a2d 100644 --- a/wrangler.jsonc +++ b/wrangler.jsonc @@ -25,12 +25,15 @@ "id": "a471e264837d4f51b077e078022f0cf0" }, ], - "r2_buckets": [ - { - "binding": "PAYLOAD", - "bucket_name": "webhooker-payloads", - } - ], + // 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",