React-native-config: Use Default .env values for other environments

Created on 21 Sep 2017  路  4Comments  路  Source: luggit/react-native-config

Is there a way to use values from the default .env file if they are not defined in other .env files?

e.g.

.env
KEY=VALUE
KEY2=VALUE2

.env.staging
KEY2=NEWVALUE

If i use .env.staging, I want to use 'KEY'

Most helpful comment

This feature would be awesome! Since it makes sense to have defaults and then you override them when necessary 馃帀

All 4 comments

Copy them?

@swl367 my pull request should address this: https://github.com/luggit/react-native-config/pull/180

It looks like this was working in #180 and then was reverted in 82ee9ad. Is there a reason for this?

This feature would be awesome! Since it makes sense to have defaults and then you override them when necessary 馃帀

Was this page helpful?
0 / 5 - 0 ratings