Skip to content

Multi env troubleshooting

Kemal Ahmed edited this page Sep 29, 2020 · 15 revisions

They must all be at the same path. so if you specify { path: 'bob'}, your environment-specific variables must be at bob.development, bob.test, and bob.production. The environment-specific variables always overwrite the default values in your .env. If you omit one of these 3, then it won't be included but hopefully you have the default values.

Maybe even try setting your path config as { path: 'ios/.env' }, then let us know if this works.

Look at the react native CLI documentation for more on how to set it to the various Babel/Node environments.

Clone this wiki locally