You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, our team has an expo monorepo with expo-router which we're using to build several different apps for our company. We have our shared components in src/. We have apps using the expo-router file system router in app_1 and app_2.
We're trying to use an environment variable during build (or dev) to change the app that is required (app_1 or app_2) based on which app we're trying to deploy:
We've done everything we can think of but it seems like expo simply doesn't support this. We're getting a number of errors based on what we've been trying; but simply passing an environment variable doesn't work.
First argument of require.context should be a string denoting the directory to require.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, our team has an expo monorepo with
expo-router
which we're using to build several different apps for our company. We have our shared components insrc/
. We have apps using the expo-router file system router inapp_1
andapp_2
.We're trying to use an environment variable during build (or dev) to change the app that is required (
app_1
orapp_2
) based on which app we're trying to deploy:We've done everything we can think of but it seems like expo simply doesn't support this. We're getting a number of errors based on what we've been trying; but simply passing an environment variable doesn't work.
Has anyone found a good way to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions