Skip to content

Overwriting system values #513

Description

@Bilge

dotenv specifically has an option (override), disabled by default, to control whether the .env file overwrites any existing system values. dotenv-webpack does not have such an option, and its behaviour appears to be to overwrite by default; the opposite of dotenv. At the very least, there should be an option to control this behaviour, but I would expect the defaults to match also.

Here is my config

           new Dotenv({
                path: path.join(__dirname, 'js.env.local'),
                defaults: path.join(__dirname, 'js.env'),
                expand: true,
            }),

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions