Comments (5)
I am also struggling with this issue. Eas build uses eas.json to create the env variables but for eas updates I can't seem to get it to use env.staging or env.development. It just defaults to whats in env.production.
from expo-cli.
@onkardeol Have you tried adding NODE_ENV=development
before the eas update
command? It may not be the nicest solution, but it seems to work for me (only locally, though).
from expo-cli.
Hi all! The eas.json
build profile does not relate to the "standard dotenv" environments. Dotenv is based on NODE_ENV
, and autoselects the right .env.*
files based on dotenv-rails
conventions. The eas.json
build profile names do not overlap with this concept.
In eas.json
, you can define a set of environment variables you want for that specific build through the env
property. If these environment variables contain semi-secret strings, I would recommend using EAS Secrets.
⚠️ Keep in mind that if you use the secret in your app, it's always compiled into the binary. Do not use secret credentials or tokens directly in your app, use an API in between instead.
We still need a better story about how these two mechanisms relate; feel free to open suggestions on our docs at github.com/expo/expo if you have a good idea.
For now I'll close this issue as this repository will be archived soon. Hope this helps!
from expo-cli.
@byCedric Looks like secrets are not loading when i use pnpx eas-cli update --branch preview --message \"update try\"
then on preview i tried
<Pressable
onPress={() => {
Alert.alert("", JSON.stringify(process.env));
}}
>
This is all there is
from expo-cli.
Oh. I did not see issue wa closed. opening new one
expo/eas-cli#2170
from expo-cli.
Related Issues (20)
- "Error: NPM package not found: exp-template-blank-typescript@latest" when using Typescript template HOT 1
- Getting an unexpected token when I try to install expo-cli or npx expo-cli -h HOT 1
- Allow for expo start -i in CI environments HOT 1
- The data couldn't be read because it isn't in the correct format. HOT 1
- Still not able to get CLI to work.... HOT 1
- Node dependencies caming Corrupted HOT 1
- [expo-doctor] Field: experiments - should NOT have additional property 'tsconfigPaths' HOT 1
- Error using templates with a scoped package name
- (doctor) cannot run expo-doctor in GitHub Actions HOT 1
- "Development team for signing the app" not updating HOT 2
- expo-doctor unable to run after upgrading to 49 from 42 HOT 4
- Change ADB path in Expo HOT 1
- Build Webhook stopped sending expo-signature header HOT 1
- Error about Xcode not installed when it is actually installed. HOT 1
- No iOS devices available in Simulator.app HOT 1
- Error: xcrun exited with non-zero code: 115 HOT 9
- create-expo-module fails with installing module dependencies HOT 1
- Expo CLI commands have typescript syntax in a .js file HOT 1
- Can somebody help me resolving this error? Facing it while deploying my react native app over AWS Amplify. Cannot find module 'expo/config' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from expo-cli.