Files
SubTracker/apps/api/.env.example
SmileQWQ b88659062a feat: unify app locale persistence and bootstrap flow
- add a dedicated app locale endpoint and move locale persistence from settings to appLocale with env-based defaults

- sync the app shell and login bootstrap flow against the resolved backend locale while keeping localStorage only as a cache

- reject locale updates through PATCH /settings and cover the migration and locale route behavior with regression tests
2026-05-17 20:55:28 +08:00

11 lines
211 B
Plaintext

PORT=3001
HOST=0.0.0.0
DATABASE_URL="file:./dev.db"
WEB_ORIGIN="http://localhost:5173"
LOG_LEVEL=warn
BASE_CURRENCY=CNY
DEFAULT_APP_LOCALE=zh-CN
TZ=Asia/Shanghai
CRON_SCAN=* * * * *
CRON_REFRESH_RATES=0 2 * * *