-
Notifications
You must be signed in to change notification settings - Fork 652
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
ENVFILE must be set #638
Comments
Where should i set ENVFILE=.env? its working fine in android debug mode but in release its not reading .env values |
Hi @Lakshmi254 you wanna make sure that when it build it's getting the values inside the .env file. Make sure you did the EXTRA STEP for Android.
|
@xgenem even with the extra steps my env is wrong. Happens just in android. My issue here |
The reason is because
|
Have lib check for default config with different name than '.env' This is what the command line is doing when you set ENVFILE=".env.renamed", Android Studio gets it though app/build.gradle.
Add if you're using proguard and noticing not seeing things in release builds:
|
When I first setup the package in my RN project it was working fine. But somehow along the way the values I am reading from Config become
undefined
even though I have .env file.Setting
ENVFILE=.env
fixed it for me.Think this should be added in DOCS?
The text was updated successfully, but these errors were encountered: