Application Configuration

Where app configuration lives in the current codebase.

Configuration is split across environment variables, typed config files, and a few route-local config modules.

Main Locations

AreaLocation
app settingsapps/web/config/app.config.ts
account modeapps/web/config/account-mode.config.ts
feature flagsapps/web/config/feature-flags.config.ts
auth configapps/web/config/auth.config.ts
internal sidebar navigationapps/web/app/[locale]/(internal)/_config/navigation.config.tsx
locale messagesapps/web/i18n/messages/<locale>/*.json

Environment files are loaded from apps/web/.env*.

How to Choose

  • use env vars for values that change by environment
  • use apps/web/config/*.ts for typed app config
  • edit route-local config when the value depends on UI structure, such as the internal sidebar

Topics

  1. App Configuration
  2. Environment Variables
  3. Account Modes
  4. Feature Flags
  5. Navigation

Next: App Configuration →