Skip to content

How to manage environment variables? #31

Answered by nandorojo
v-raja asked this question in Q&A
Discussion options

You must be logged in to vote

While I don't have a ton of time to write a full guide or example currently, I realized I explained this over a discord chat before already. So I'm going to drop screenshots here of that convo. Hopefully this is enough to explain it all.

Please consider these instructions as-is. You should never commit any secrets to git or put them in any env files using this approach. You can use secrets on Vercel and on EAS. I'm sharing this as a courtesy, but you are in charge of your own security.

Small Update

As of newer expo SDKs, I had to add this to my eas.json build profiles to make the above approach work, which removes Expo's built-in env variable support.

"env": {
  "EXPO_NO_DOTENV": "1"

Replies: 5 comments 23 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@rodbs
Comment options

@nandorojo
Comment options

Comment options

You must be logged in to vote
16 replies
@rodbs
Comment options

@nandorojo
Comment options

@RicardoPBarbosa
Comment options

@nandorojo
Comment options

@TechchazeInc
Comment options

Answer selected by nandorojo
Comment options

You must be logged in to vote
3 replies
@nandorojo
Comment options

@anmoltiwari00
Comment options

@nandorojo
Comment options

Comment options

You must be logged in to vote
2 replies
@artiphishle
Comment options

@nandorojo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
9 participants