feat(storage): Add delivery state store switch (D1 by default or KV) (#12)

This commit is contained in:
w9auto committed 2026-11-17 22:46:50 +08:00
1 parent fc4495dfb4
commit 0c126d4fee
21 files changed
+756 -184

No files matched your search

+2
View File
@@ -31,6 +31,8 @@ ADMIN_USER_IDS=your-github-id
# DEBUG_MODE=true # local development only: bypasses all admin authentication
# ALLOW_SELF_SIGNUP=1 # non-admin GitHub users get a personal group on first login (default off)
# AUDIT_RETENTION_DAYS=90 # audit log retention for the scheduled cleanup (default 90)
# DELIVERY_STATE_STORE=kv # keep webhook delivery state in KV instead of D1: faster at the edge,
# # but the free plan allows only ~1,000 KV writes/day (default d1)
# Server / public URL (OAuth callbacks + Telegram webhook sync)
BASE_URL=http://localhost:8787