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
| Area | Location |
|---|---|
| app settings | apps/web/config/app.config.ts |
| account mode | apps/web/config/account-mode.config.ts |
| feature flags | apps/web/config/feature-flags.config.ts |
| auth config | apps/web/config/auth.config.ts |
| internal sidebar navigation | apps/web/app/[locale]/(internal)/_config/navigation.config.tsx |
| locale messages | apps/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/*.tsfor typed app config - edit route-local config when the value depends on UI structure, such as the internal sidebar
Topics
Next: App Configuration →