Relative Content

Tag Archive for angularng

add config route to ng serve

I would like to add a specific route to the ng serve command, because I need to deliver a json file from that endpoint. It contains runtime config for the angular app. In the prod env this is easily done by configuring the web server accordingly, however in dev environment I am struggling. Right now I solved it by simply starting up an nginx that does the job an letting ng serve know about it via proxy.conf.json. This works as expected but feels a bit cumbersome. I would like to get rid of the dev nginx. Any ideas?