Is there any way to configure proxy server in polymer-cli ? similar to webpack-dev-server proxy. I've check any possible documentation with no success
There are two proxy options you can set when running polymer serve:
--proxy-path string
Top-level path that should be redirected to the proxy-target. E.g. api/v1
when you want to redirect all requests of https://localhost/api/v1/
.
--proxy-target string
Host URL to proxy to, for example https://myredirect:8080/foo
.
Starting with a proxy would look something like:
polymer serve --proxy-target http://localhost:3000 --proxy-path api
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With