Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

override values from .env with values form environment variables #63

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

aakashsigdel
Copy link

@aakashsigdel aakashsigdel commented Jun 30, 2019

according to dotenv documentation:

What happens to environment variables that were already set?
We will never modify any environment variables that have already been set. In particular, if there is a variable in your .env file which collides with one that already exists in your environment, then that variable will be skipped. This behavior allows you to override all .env configurations with a machine-specific environment, although it is not recommended.

What this PR does:

  • if a value is present on environment variable it overrides the value that is on the .env files

Why is this needed:

  • to align more with how dotenv lib functions
  • to make it easier for CI/CD piple to define the env vars

fixes #37

@goatandsheep
Copy link

this is a pretty essential PR imo. This package is unusable without this.

@goatandsheep
Copy link

This package is inactive. I say you start a new package.

@chandlervdw
Copy link

🙏 please get this merged

@solomonhawk
Copy link

Anything I can do to help move this along?

@goatandsheep
Copy link

goatandsheep commented May 21, 2020

@solomonhawk There's a new repo and package babel-plugin-dotenv-import. Please reopen in the new repo

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature proposal: use/don't-override already set environment variables
4 participants