Skip to content

Provide path to .env file at build time #66

@SharbelOkzan

Description

@SharbelOkzan

Motivation:
Facilitate working with flavors.

Goal:
Have the possibility to pass the path to the .env file with flutter build and flutter run. It will still default to /.env if not provided.
Users may utilize this feature by having multiple env files and executing:

flutter run --flutter-config-path=/.env.stage
# or
flutter run --flutter-config-path=/.env.prod

Does that exist? If not, is it theoretically possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions