fix(deploy): make KV deploy idempotent

Adapted from #233 with deploy build kept in wrangler config.
This commit is contained in:
52assert
2026-05-31 01:20:14 +08:00
committed by shuaiplus
parent 85bd2fa4bf
commit 667afa305b
2 changed files with 65 additions and 1 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
"i18n": "node scripts/i18n-validate.cjs",
"i18n:validate": "node scripts/i18n-validate.cjs",
"deploy": "wrangler deploy",
"deploy:kv": "wrangler deploy -c wrangler.kv.toml",
"deploy:kv": "node scripts/ensure-kv.cjs && wrangler deploy -c wrangler.kv.toml",
"deploy:demo": "npm run build:demo && wrangler pages deploy dist --project-name nw-demo"
},
"keywords": [