-
Notifications
You must be signed in to change notification settings - Fork 1
Configuration
fulleni edited this page Jan 18, 2026
·
1 revision
The API Server is configured using the 12-Factor App methodology. Configuration is strictly separated from code.
The system reads configuration from environment variables loaded from a .env file in the project root.
-
Class:
EnvironmentConfig(lib/src/config/environment_config.dart) -
Mechanism: On startup, the system searches for a
.envfile starting from the current directory and traversing up to the project root (identified bypubspec.yaml). -
Validation: It provides type-safe accessors that throw a
StateErrorif a required variable (likeDATABASE_URL) is missing, preventing the app from starting in a broken state.
Dynamic behavior (feature flags, limits) is managed via Remote Config, stored in the database.
-
Model:
RemoteConfig(packages/core) -
Storage:
remote_configscollection. - Usage: Services fetch this config at runtime to determine behavior (e.g., "Is the Rewards feature enabled?", "Which Analytics provider is active?").
- Management: This config is editable via the Flutter Web Dashboard.
For comprehensive details regarding licensing, including trial and commercial options for the entire toolkit, please refer to the toolkit organization page.