zetachang / react-native-dotenv

A Babel preset let you import application configs from .env file (zero runtime dependency)
MIT License
915 stars 68 forks source link

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

Open aakashsigdel opened 5 years ago

aakashsigdel commented 5 years ago

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:

Why is this needed:

fixes #37

goatandsheep commented 5 years ago

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

goatandsheep commented 5 years ago

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

chandlervdw commented 4 years ago

🙏 please get this merged

solomonhawk commented 4 years ago

Anything I can do to help move this along?

goatandsheep commented 4 years ago

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