-
I'm migrating a Next.js app to a RN + Next app using the solito blank monorepo. I was wondering where I should store my environment variables so that I can use |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 23 replies
-
same question :m |
Beta Was this translation helpful? Give feedback.
-
I have a solution to this. I’ll write here when I have some time. |
Beta Was this translation helpful? Give feedback.
-
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 UpdateAs of newer expo SDKs, I had to add this to my "env": {
"EXPO_NO_DOTENV": "1",
"EXPO_NO_CLIENT_ENV_VARS": "1"
} |
Beta Was this translation helpful? Give feedback.
-
hey @nandorojo possible to list the extra steps required for native? would be really helpful. We have a setup with RNCli and Next. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Can this be added to the solito monorepo by default? |
Beta Was this translation helpful? Give feedback.
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.