.env files on eas side #369
Unanswered
stephanepx
asked this question in
Q&A
Replies: 2 comments 5 replies
-
hello @stephanepx did u followed this tuto for sentry ? https://starter.obytes.com/recipes/sentry-setup/ |
Beta Was this translation helpful? Give feedback.
1 reply
-
The error indicates that those environment variables do not exist while building the app on EAS. A simple workaround for now is to add those variables to EAS secret too. But just a few questions to check what's going on:
I am thinking of maybe adding an env.staging file on the fly (SpicyPizza/create-envfile)and having it in the .gitignore so it will not be uploaded to EAS. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys !
Thanks a lot for this awesome repository !
My team and I are wondering why we are facing this error in our EAS Build :
❌ Invalid environment variables: { SENTRY_ORG: [ 'Required' ], SENTRY_PROJECT: [ 'Required' ] }
❌ Missing variables in .env.staging file, Make sure all required variables are defined in the .env.staging file.
💡 Tip: If you recently updated the .env.staging file and the error still persists, try restarting the server with the -c flag to clear the cache.
We recently add Sentry and follow your guide.
So in env.js we have this :
And in our eas-build-qa.yml we have :
We also added SENTRY_ORG & SENTRY_PROJECT in Github variables (we tried also with secrets)
And we added EXPO_TOKEN & SENTRY_DSN in Github Secrets
It seems that EAS build can't have access to this .env.file
Do you have any idea how we can handle this ?
Thanks !
Beta Was this translation helpful? Give feedback.
All reactions