You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.1 KiB
51 lines
1.1 KiB
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': '' |
|
} |
|
}, |
|
} |
|
} |
|
});
|
|
|