const path = require('path'); // const proxy_path = 'http://192.168.2.241:88'; const proxy_path = 'http://173.18.12.195:5050'; // const proxy_path = 'http://192.168.65.95:5050'; //沙雅线上地址 // const proxy_path = 'http://192.168.3.117:5050';//周铁刚 // const proxy_path = 'http://192.168.3.113:5050'; //王峰 module.exports = { lintOnSave: false, runtimeCompiler: true, devServer: { historyApiFallback: true, disableHostCheck: true, port: 4500, proxy: { '/api': { target: proxy_path, changeOrigin: true, secure: false, }, '/other_api': { target: "http://172.16.8.54:8086", changeOrigin: true, secure: false, pathRewrite: { "^/other_api": "" } }, '/knowledge': { target: "http://173.18.12.205:8001", changeOrigin: true, secure: false, // pathRewrite: { // "^/kgrt_api": "" // } }, '/pdf_api': { target: "http://173.18.12.197:9200", changeOrigin: true, secure: false, pathRewrite: { "^/pdf_api": "" }, }, '/fcr_api': { target: "http://173.18.12.195:5757", changeOrigin: true, secure: false, pathRewrite: { "^/fcr_api": "" }, } }, }, configureWebpack: { resolve: { alias: { '@components': path.resolve(__dirname, './src/components/'), '@less': path.resolve(__dirname, './src/less/'), '@base': path.resolve(__dirname, './src/components/base/'), '@api': path.resolve(__dirname, './src/api/'), }, }, }, };