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

Adding functionality to get values from system env #59

Open balascript opened 5 years ago

balascript commented 5 years ago

Hi @zetachang, Thanks for the awesome library that we use for our app. We found this particular extension useful for us and could benefit others too.

This PR extends react-native-dotenv to use the values from system environment variables that are specified in .env. files.

This eliminates the need of hardcoding the important/secret values into .env files when they are already available via system environment. This adds a lot of value to organizations that uses monolithic repositories where the API_KEYs and SECRETs are shared between apps in same repo.

goatandsheep commented 4 years ago

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