- loadConfig: pure over env object, accumulates all problems, names var names only - DATABASE_URL now required at startup; PORT/HOST/LOG_LEVEL/NODE_ENV/REDIS_URL defaulted - flags module behind FeatureFlagProvider; unknown flags OFF; runtime setEnabled (no redeploy) - buildApp decorates app.flags; server.ts fail-fast before app boot - tests caught and fixed flag-store case-normalization bug before gates - zero new dependencies; all gates approved; verify.sh green
10 lines
511 B
Plaintext
10 lines
511 B
Plaintext
# Copy to .env for local development. Real .env is gitignored.
|
|
# Matches docker-compose.yml dev credentials (dev-only, never reuse elsewhere).
|
|
DATABASE_URL=postgres://mdv:mdv_dev_only@localhost:5432/mercadodevida
|
|
TEST_DATABASE_URL=postgres://mdv:mdv_dev_only@localhost:5432/mercadodevida_test
|
|
REDIS_URL=redis://localhost:6379
|
|
|
|
# Feature flags: FLAG_<NAME>=true|false (parsed into the flag store at boot).
|
|
# Unknown flags default to OFF. Flags can be flipped at runtime via the store.
|
|
FLAG_EXAMPLE_FEATURE=false
|