react-native-dotenv icon indicating copy to clipboard operation
react-native-dotenv copied to clipboard

override values from .env with values form environment variables

Open aakashsigdel opened this issue 6 years ago • 5 comments

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

aakashsigdel avatar Jun 30 '19 07:06 aakashsigdel

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

goatandsheep avatar Jul 19 '19 21:07 goatandsheep

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

goatandsheep avatar Jul 29 '19 02:07 goatandsheep

🙏 please get this merged

chandlervdw avatar Oct 08 '19 20:10 chandlervdw

Anything I can do to help move this along?

solomonhawk avatar May 21 '20 16:05 solomonhawk

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

goatandsheep avatar May 21 '20 18:05 goatandsheep