module.exports = {
  outputDir: "fns_front",
  // publicPath: '/app',
  devServer: {
    proxy: {
      "/proxyApi": {
        target: "http://172.16.102.150:8091",
        // target: 'https://www.puhuijr.net/proxyApi',
        pathRewrite: {
          "^/proxyApi": "",
        },
      },
      "/proxyWs": {
        target: "ws://172.16.101.107:8888",
        // target: 'ws://121.36.201.96:8888',
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          "^/proxyWs": "",
        },
      },
    },
  },
  chainWebpack: (config) => {
    config.plugin("html").tap((args) => {
      args[0].title = "微杰科技有限公司";
      return args;
    });
  },
};
