mirror of
https://github.com/wuzf/2fa.git
synced 2026-09-03 07:17:09 +08:00
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.