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
It seems that calling MY_ENV=test yarn start and using this in the app as process.env.MY_TEST will require a reset of the cache when the env var changes: MY_ENV=test2 yarn start will not be picked up in the app.
Is there a way to somehow hash the process.env and add it to the babel cache and recalculate all process.env replacements, when the env changed?
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
-
It seems that calling
MY_ENV=test yarn start
and using this in the app asprocess.env.MY_TEST
will require a reset of the cache when the env var changes:MY_ENV=test2 yarn start
will not be picked up in the app.Is there a way to somehow hash the process.env and add it to the babel cache and recalculate all process.env replacements, when the env changed?
Beta Was this translation helpful? Give feedback.
All reactions