Ability to interpolate env vars in *.options.env
in project.json
#30246
dustyhorizon
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
-
Currently we are heavily using Nx in our workflows and ran into a problem of not being able to easily interpolate Nx environment variables within
*.options.env
in project.json when using thenx:run-commands
executor.The idea is to be able to do have a unique "DISPLAY_NAME" variable per job in the monorepo that is built from specific Nx environment variables i.e.
DISPLAY_NAME=${NX_TASK_TARGET_PROJECT}:${NX_TASK_TARGET_TARGET}"
A workaround is to configure the environment variables inline with the command(s) but that will make it super long and unnecessary difficult to maintain as it is prone to developer error.
Beta Was this translation helpful? Give feedback.
All reactions