How to make serve optio…

less than 1 minute read

How to make serve.options.proxyConfig dynamic?

Responses:

I’ve not tried this, but I wonder if you can do nx serve my-app --proxyConfig=${ENV_PROXY_CONFIG} :thinking_face:

I don’t know if it’s possible to embed that in workspace.json though

yep, that definitely works, we need to add it to the –help screen

Fernando, not sure if you are aware, but the proxyconfig can also be a .js file and you can check your env vars in there

That way one file can be dynamically configured.

Updated: