frontend-maven-plugin
frontend-maven-plugin copied to clipboard
Is it possible to change environment variables on runtime?
Do you want to request a feature or report a bug? Feature request
What is the current behavior?
It is possible to configure environmentVariables to override a .env file with env variables on build time.
So when I configure this:
<configuration>
<installDirectory>node_target</installDirectory>
<npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
<nodeVersion>v18.14.2</nodeVersion>
<environmentVariables>
<MY_VARIABLE>${env.CUSTOM_VARIABLE}</MY_VARIABLE>
</environmentVariables>
</configuration>
and run
export CUSTOM_VARIABLE=someValue
mvn clean install
the value for MY_VARIABLE is set to someValue.
Is there any way to change that value without rebuilding the application? for example in a docker container or kubernetes cluster?
Please mention your frontend-maven-plugin and operating system version. frontend-maven-plugin: 1.12.1 OS: macOS Ventura 13.2.1