-
Notifications
You must be signed in to change notification settings - Fork 88
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
eas submit does not use environment variables from eas.json #835
Comments
this is expected behavior. we may need to document this more clearly, currently it's documented here: https://docs.expo.dev/build/automating-submissions/#build-profile-environment-variables-and-submissions |
Posting here because it's not an issue but more a inconsistency in the docs @brentvatne : here is described: "Remove any code that references Constants.manifest. That will now always return null." but here it is described how to get the env variables from eas.json using Constants.manifest (which is not working). Sorry if it's the wrong place to share this, but I wasn't sure where to post this. Its driving me crazy because I couldnt figure out a way to retreive the env variables of eas.json |
@hfllr So did you have any luck retrieving the env variables of eas.json? I'm still struggling with this issue. |
We are having a bit of trouble getting We use some logic in {
build: {...},
submit: {
base: {...},
dev: {
extends: 'base',
env: {
APP_ENV: 'dev'
},
},
prod: {
extends: 'base',
env: {
APP_ENV: 'prod'
}
},
'prod:beta': {
extends: 'prod',
android: {
track: 'internal',
},
// etc
},
},
} |
@Userrrfriendly sorry for the late reply, but no not yet. I'm currently using 'process.env.NODE_ENV' inside the code to make the necessary distinction where needed. This doesn't allow for custom environments, but at least distinguishes dev from prod. |
See: https://docs.expo.dev/eas/json/#bundleidentifier "..but if you have multiple Xcode schemes and targets, this value might be necessary."
|
Summary
When running
eas submit --platform ios --profile tst --latest
it returns an error.Managed or bare?
Managed
Environment
EAS CLI 0.40.0 environment info:
System:
OS: Windows 10 10.0.22000
Binaries:
Node: 14.18.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.15 - ~\AppData\Roaming\npm\yarn.CMD
npm: 6.14.15 - C:\Program Files\nodejs\npm.CMD
Utilities:
Git: 2.31.1.
npmPackages:
@expo/webpack-config: ^0.16.2 => 0.16.4
expo: ^43.0.0 => 43.0.0
react: 17.0.1 => 17.0.1
react-dom: 17.0.1 => 17.0.1
react-native: 0.64.3 => 0.64.3
react-native-web: 0.17.1 => 0.17.1
Project workflow: managed
Error output
Reproducible demo or steps to reproduce from a blank project
Init an EAS project with the following files:
eas.json
app.config.js
It's probably the same underlying issue as #820.
When running an
eas build
with--auto-submit
it works. But runningeas submit
seperately from the build does not.The text was updated successfully, but these errors were encountered: