Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure proxy server in polymer cli

Tags:

polymer-cli

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

like image 309
Adi Setiawan Avatar asked Aug 04 '16 02:08

Adi Setiawan


1 Answers

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
like image 155
App je niks aan Avatar answered Nov 12 '22 11:11

App je niks aan