Skip to main content

Development

🗃️ Configure with enven

We are using a .env (dotenv) configuration system for secrets and other app configuration. You can find it in app/.env. For managing this we are using the great enven-package, which allows for flexible management of various environments and just compiles it into with a simple command.

Your own configuration

Enven supports a simple precedence hierarchy of files (if found) that overwrite any value given before. This hierarchy is:

  1. .env.production
  2. .env.prod
  3. .env.development
  4. .env.dev
  5. .env

Please not that .env is shared in the repository and .env.production and env.prod are reserved for actual CI build use cases.

Which means, if you want your own local configuration to overwrite any configuration you can just add a .env.dev or .env.development (recommended) in your app folder and put any parameter in there.

💡
Don't forget to run dart run enven (in app) and restarting the app after changing any of these files or they won't take effect. To confirm you can find the generated dart file at app/lib/config/env.g.dart,