Skip to content

Allow setting default env files locations #367

Description

@squivix

I want to be able to permentantly set the default location to search for env files if it's not specified in the command.
Right now it's a constant:

const ENV_FILE_DEFAULT_LOCATIONS = ['./.env', './.env.js', './.env.json']

But I want to set it in some sort of config, possibly through the package.json file:

  "env-cmd": {
    "ENV_FILE_DEFAULT_LOCATIONS": ["./env/*.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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions