how does gulp+browser-sync proxy multiple addresses
for example:
gulp.task("browserSync",function() {
const aipProxy = proxy("/api", {
target: "http://192.168.x.x:8080",
changeOrigin: true,
pathRewrite: {
"^/api": "/", //rewrite,
}
});
browserSync.init({
server: {
baseDir: "app",
middleware:[aipProxy],
index: "index.html"
},
host:"localhost",
port:7777,
});
});
now I want to add a proxy address.