When gulp is configured, http-proxy-middleware is used as the proxy. Does anyone know how to configure multiple proxies?

  node.js, question

When gulp is configured, http-proxy-middleware is used as the proxy. Does anyone know how to configure multiple proxies?

gulp.task('server', function() {
 connect.server({
 livereload: true,
 root: "./output",
 port: 8080,
 middleware: function(connect, opt) {
 return [
 proxy('/test',{
 target: 'http://localhost:8000',
 changeOrigin: true,
 })
 bracket
 bracket
 });
 });

Return is not to return array, you try to write more proxy

gulp.task('server', function() {
 connect.server({
 livereload: true,
 root: "./output",
 port: 8080,
 middleware: function(connect, opt) {
 return [
 proxy('/test',{
 target: 'http://localhost:8000',
 changeOrigin: true,
 }),
 proxy('/other-test',{
 target: 'http://localhost:9000',
 changeOrigin: true,
 })
 bracket
 bracket
 });
 });

Official examples:
https://github.com/chimurai/h …