I'm facing the issue with passing system ENV's to the JS app, which is an internal part of Spring Boot App: subproject, which is processed during build, and then passed to the meta of the Java application. Everything is working fine, except that ENV variables totaly don't affects the JS applicaiton. On Java side everything is allright, but whatever I would use to manipulate the system environmentals it just don't work. I tried:
- export it as a USER's env
- adding it as a parameter to the application:
java -DENV_NAME=abcd app.jar - creating the .env file
Did you faced the same problem and found a working solution for that?
One more important note here: for JS build process I'm using parcel
My desired state is that when I change the ENV, the JS which lives&runs inside of the .jar could react for this change (e.g. credentials)