const { defineConfig } = require("@vue/cli-service"); module.exports = defineConfig({ transpileDependencies: true, publicPath: '/', lintOnSave: true, productionSourceMap: false, devServer: { port: 8080, proxy: { '/api': { target: 'https://lcrm3api.lunz.cn', changeOrigin: true, ws: true, // pathRewrite: { // '^/api': '' // } }, '/gatewayapi': { target: 'https://gatewayapi.lunz.cn/api', changeOrigin: true, ws: true, pathRewrite: { '/gatewayapi': '' } }, '/weather': { target: 'https://api.map.baidu.com', changeOrigin: true, ws: true, }, // '/sjapi': { // target: 'http://192.168.1.38:8210', // // target: 'http://127.0.0.1:8210', // changeOrigin: true, // ws: true, // pathRewrite: { // '/sjapi': '' // } // }, '/pollapi': { target: 'https://poll.kuaidi100.com', changeOrigin: true, ws: true, pathRewrite: { '/pollapi': '' } }, } } });