Skip to content

Add a NODE_ENV argument #5

Description

@miyaji255

I would like to set NODE_ENV like the following, because I cannot use NODE_ENV=development on Windows.

$ dotenv-flow -e development -- prisma migrate dev

I think the following implementation

  const path = argv.p;
- dotenvExpand.expand(dotenv.config({ path }));
+ const node_env = argv.e;
+ dotenvExpand.expand(dotenv.config({ path, node_env }));

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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