module.exports = { lintOnSave: false, assetsDir: "static", publicPath: "/", outputDir: "dist", productionSourceMap: false, devServer: { port: 80, proxy: { [process.env.VUE_APP_BASE_API]: { // 本地环境 // target: 'http://192.168.1.21:8080', // 服务器环境(测试) target: "https://xsmzctest.shizhi.tv/prod-api", // 服务器环境(生产) // target: 'https://smzc.shizhi.tv/prod-api', changeOrigin: true, pathRewrite: { ["^" + process.env.VUE_APP_BASE_API]: "", }, }, // 人脸识别 "/oldRlsb": { target: "https://ai.sdaer.cn", pathRewrite: { "^/oldRlsb": "", }, changeOrigin: true, }, // kfWebVideo视频集成 "/dispatch": { target: "https://kamfu.shaanxi.chinatax.gov.cn:8003/dispatch", changeOrigin: true, pathRewrite: { "^/dispatch": "/dispatch", }, }, "/aits": { target: "https://kamfu.shaanxi.chinatax.gov.cn:8003/aits", changeOrigin: true, pathRewrite: { "^/aits": "/aits", }, }, "/avd": { target: "https://spzxt.dg.cn:1443", pathRewrite: { "^/avd": "/", }, changeorigin: true, //是否跨域fa secure: false, //是否使用https }, }, }, };