6 Commits

Author SHA1 Message Date
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
7fe83d489a chore(release): v1.3.0
- unify version metadata for v1.3.0\n- prefer production KV namespace in deploy script
2026-03-30 00:10:35 +08:00
wuzf
2ca7e7747d feat(deploy): auto-detect and reuse existing KV namespace in deploy scripts 2026-03-21 19:52:02 +08:00
wuzf
06a20123e2 fix: prevent deploy platform from creating unused KV namespace
Comment out all [[kv_namespaces]] in wrangler.toml (both production and
development) so deploy.workers.cloudflare.com no longer creates an empty
"2fa" KV. Updated deploy.js to handle fully commented KV config: search
for existing "SECRETS_KV" namespace first (exact match only), create one
if not found, then inject the binding block into wrangler.toml before
deploying.
2026-02-27 02:07:50 +08:00
wuzf
e024051171 fix: remove hardcoded KV namespace IDs for one-click deploy 2026-02-27 00:36:42 +08:00
wuzf
83e9042759 feat: restructure into modular architecture with full open-source setup
- Refactor monolithic worker into layered modules (api, otp, ui, utils)
- Add Vitest test suite with 598 tests across 17 files
- Set up GitHub Actions CI/CD, Dependabot
- Add community files (CONTRIBUTING, CODE_OF_CONDUCT, SECURITY, templates)
- Add comprehensive documentation (API reference, architecture, deployment)
- Configure ESLint, Prettier, and Husky pre-commit hooks
- Implement PWA frontend with modular scripts, styles, and service worker
2025-06-07 23:31:55 +08:00