feat: add Web Vault visibility switch

This commit is contained in:
shuaiplus
2026-07-17 11:32:43 +08:00
parent 299eda597f
commit 6cbc06f833
7 changed files with 69 additions and 21 deletions
+2
View File
@@ -6,6 +6,8 @@ export interface Env {
ASSETS?: {
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
};
// Set to "1" to return 404 for the Web Vault while keeping client APIs available.
HIDE_WEB_VAULT?: string;
// Prefer R2 when available. Optional to support KV-only deployments.
ATTACHMENTS?: R2Bucket;
// Optional fallback for attachment/send file storage (no credit card required).