mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-21 01:23:40 +00:00
feat(storage): Add delivery state store switch (D1 by default or KV) (#12)
This commit is contained in:
21 files changed
+756
-184
No files matched your search
@@ -31,6 +31,12 @@ export interface Env {
|
||||
ALLOW_SELF_SIGNUP?: string;
|
||||
/** Audit log retention in days (default 90). */
|
||||
AUDIT_RETENTION_DAYS?: string;
|
||||
/**
|
||||
* Where webhook delivery state is kept: `d1` (default) or `kv`. D1 allows
|
||||
* far more free writes but each one is a database round trip; KV answers at
|
||||
* the edge and is best effort (no compare-and-set).
|
||||
*/
|
||||
DELIVERY_STATE_STORE?: string;
|
||||
ASSETS?: Fetcher;
|
||||
KV: KVNamespace;
|
||||
DB: D1Database;
|
||||
|
||||
Reference in new issue
Block a user