make standard behavior of nx:run-commands be to read in standard .env files unless the optional "envFile" is specified in options #31536
ckot
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've found that when using the nx:run-commands executor, NX_LOAD_DOT_ENV_FILES === "true", yet the .env files I expected to get loaded weren't. I looked at the executor code and see that it has optional envFile options, but it looks like that is all it will load.
I'm wondering if this could be changed so that the default .env* files get loaded, in the standard order, unless one wishes to override this behavior by setting envFile in options.
I just think this would be more in sync with the normal env file loading elsewhere, although I can see how this might break backward compatibility. Just my two cents.
-Scott
Beta Was this translation helpful? Give feedback.
All reactions