feat: add support for KV storage mode and enhance attachment handling

This commit is contained in:
shuaiplus committed 2026-03-06 01:00:19 +08:00
1 parent 773453b7cc
commit 5d636e4977
11 files changed
+289 -71

No files matched your search

+6 -1
View File
@@ -8,8 +8,10 @@
"type": "module",
"scripts": {
"dev": "wrangler dev -c wrangler.toml",
"dev:kv": "wrangler dev -c wrangler.kv.toml",
"build": "vite build --config webapp/vite.config.ts",
"deploy": "wrangler deploy"
"deploy": "wrangler deploy",
"deploy:kv": "wrangler deploy -c wrangler.kv.toml"
},
"keywords": [
"bitwarden",
@@ -28,6 +30,9 @@
},
"ATTACHMENTS": {
"description": "R2 bucket for storing file attachments"
},
"ATTACHMENTS_KV": {
"description": "Optional KV namespace fallback for attachment/send-file storage"
}
}
},