3 Commits

Author SHA1 Message Date
wuzf
e3c229b2fe fix(deploy): inject SW_VERSION into all env blocks 2026-08-09 20:40:19 +08:00
wuzf
ca0e495ab4 fix(deploy): make KV detection env-aware to prevent misreporting
Step 2.5 in deploy.js was env-blind, so 'npm run deploy:dev' falsely
reported reusing the production KV while wrangler silently fell back to
the env binding. Combined with [env.development] inheriting top-level
routes, dev deploys could also hijack the production custom domain.
Make extractWorkerName / injectKvNamespaceId / findExistingKvId accept
an envName parameter, and preserve [env.development].routes across
Sync Upstream merges so 'routes = []' overrides survive upgrades.
2026-05-10 11:02:12 +08:00
wuzf
2ca7e7747d feat(deploy): auto-detect and reuse existing KV namespace in deploy scripts 2026-03-21 19:52:02 +08:00