| | |
| | | // webpack-dev-server 相关配置 |
| | | devServer: { |
| | | host: '0.0.0.0', |
| | | // public: '192.168.1.2:8080', // 此处是自己电脑IP地址! |
| | | port: port, |
| | | open: true, |
| | | proxy: { |
| | | // detail: https://cli.vuewww.bendudu.comjs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | target: `https://10.39.18.174:8080/`, |
| | | // target: 'https://www.bendudu.com:8080/', |
| | | // target: `https://10.39.18.174:8080/`, |
| | | // target: `https://192.168.1.4:8080/`, |
| | | target: 'https://www.bendudu.com:8080/', |
| | | changeOrigin: true, |
| | | pathRewrite: { |
| | | ['^' + process.env.VUE_APP_BASE_API]: '' |