hqjs / hq

Lightning fast, zero configuration, web application development server
https://hqjs.org
MIT License
126 stars 11 forks source link

Using a proxy in Angular with hqjs #26

Closed azaeng04 closed 3 years ago

azaeng04 commented 4 years ago

Our app currently uses a proxy to connect to backend services. Is it possible to somehow configure this as part of hqjs? Cos at the moment I would still need to do a ng serve -c proxy

hqjs commented 4 years ago

Thanks for reporting. It is not possible as hq was designed not to require any configuration. I will think how to make it possible, probably some external package that does it will help.

hqjs commented 4 years ago

@azaeng04 give a try to https://www.npmjs.com/package/http-proxy-cli it seems like what you need, you can run both hq and backend and redirect requests from proxy to both of them.