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
NX comes with a caching feature, config is done in the nx.json file
I would like to use environment variable to set the cacheDirectory
is it possible to use a system environment variable in the path to cacheDirectory ? is it possible to use a specific environment variable NX_MY_CACHE_PATH for instance ?
Below and example : Is there a way to tell NX that $HOME must be interpreted and replaced ?
If this is not possible, would you care to implement the $NX_SOME_VAR interpreter ? so it uses the variable ?
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
-
Hello
NX comes with a caching feature, config is done in the nx.json file
I would like to use environment variable to set the cacheDirectory
is it possible to use a system environment variable in the path to cacheDirectory ? is it possible to use a specific environment variable NX_MY_CACHE_PATH for instance ?
Below and example : Is there a way to tell NX that $HOME must be interpreted and replaced ?
If this is not possible, would you care to implement the $NX_SOME_VAR interpreter ? so it uses the variable ?
Example :
What do you think of this ?
I actually posted this question on stackoverflow : https://stackoverflow.com/questions/67967490/nx-monorepo-cachedirectory-pointing-to-environment-variable
Beta Was this translation helpful? Give feedback.
All reactions