flutter_dotenv
flutter_dotenv copied to clipboard
Placement of multiple .envs
Suppose I have .env.dev and .env.prod, where would i put them if I want to include only the prod env in a production bundle? The example places the .env file in assets but arent all assets part of build bundle? It would be cool if there was an example for dealing with multiple envs storing all of them in the same location. Maybe it is super obvious, in that case I am sorry to ask
I have the same issue. @alexw92, did you find a fix for this?
If i defined my env files in the pubspec.yaml file like this,
assets:
- .env.development
- .env.testing
- .env.production
And when I run dart run build_runner build, Fluttergen generates incorrect code. It may be a bug in Fluttergen. I'm not sure.