-
Notifications
You must be signed in to change notification settings - Fork 84
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
.env is not being loaded on eas update #2174
Comments
What Expo SDK version are you using? |
package.json
pnpm expo -v
|
Looking at your screenshot from #2170, I see a warning about EAS CLI being installed as your project dependency. Can you remove it from your project dependencies and install the latest version globally? |
Just in case : ❯ pnpx eas-cli -v
eas-cli/6.0.0 darwin-x64 node-v20.10.0
pnpx eas-cli -v 5.15s user 3.99s system 122% cpu 7.489 total |
EAS Update does not pull in values from secrets. Secrets are not intended for updates! Secrets are values that will be present on an EAS Build worker temporarily to hold values like sensitive API keys to upload sourcemaps to Sentry and such things. You do not want to include these values in your update. |
One thing I don't understand is If i write app that uses Then I found small problem and runs |
hey @matart15 , the problem is the way you are calling the environment variable. When Here are more details: https://docs.expo.dev/guides/environment-variables/#how-to-read-from-environment-variables Note: I just tested this behaviour in SDK 50 to make sure it still works, but i see you are on SDK 49. If you are still getting the same issue, please let us know! |
Woow.
Typescript linter gives me error if i use dot notation. |
I'm testing this now and also noticed that my I could see this as a problem when lets say i find a bug and i want to fix it fast but i forget to change Also another issue, even if i pushed |
I think i found solution
Update: nope still having this weird issue where i can't make API requests even tho variable is PROD, doing build works fine, only update that is problem |
The |
--clear-cache solved the issue, and i think it should be better for expo update to use the variables set in the production profile or in secrets instead of going with .env direclty |
Build/Submit details page URL
No response
Summary
I have
.env
file. it is working without problem onexpo dev
.But when i use
expo update
Managed or bare?
managed
Environment
Need to install the following packages:
[email protected]
Ok to proceed? (y)
expo-env-info 1.0.5 environment info:
System:
OS: macOS 14.1.2
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
npm: 8.19.4 - ~/workplace/github/.../node_modules/.bin/npm
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.2, iOS 17.2, macOS 14.2, tvOS 17.2, watchOS 10.2
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9123335
Xcode: 15.1/15C65 - /usr/bin/xcodebuild
Expo Workflow: managed
npx expo-env-info 5.87s user 2.57s system 62% cpu 13.478 total
Error output
No response
Reproducible demo or steps to reproduce from a blank project
The text was updated successfully, but these errors were encountered: