New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Multi-env and caching #115
Comments
What happens if you do |
Huh, I tried it again today and it seems like it's not even reading my .env.production even after I To be clear, what I did was
What I expect, |
Am I misunderstanding the priority? rather than or am I misunderstanding that, at least as far as I remember, .env.production and .env.development is done automatically by the metro bundler and requires no extra setup (like specifying an environment variable on yarn start e.g. |
In general you shouldn't need I think you meant However if the babel env is not reporting properly, it will default to .env.development. If you can't figure out why your production environment is reporting development, easiest thing is to just use app_env=production |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
First of all, thanks for the library, the multi-env feature it provides makes it much better.
I have a question about the multi-env and the caching...
I understand that the .env.production / .env.development (defined environment variables) overwrite the general .env
e.g. I have a .env and a .env.production. I
yarn start
to run a bundler for fixing a bug on a debug build. I then stop the bundler and re-yarn start
before proceeding to "Archive" using XCode to distribute my app. Will the Archive app use values from the .env or .env.production?I've had a problem with the .env variables and I'm just trying to figure out if it was the caching or something else.
The text was updated successfully, but these errors were encountered: