| 1234567891011121314151617181920212223 |
- module.exports = {
- devServer: {
- host: '0.0.0.0',
- port: 8081,
- open: true,
- proxy: {
- [process.env.VUE_APP_API_HOST]: {
- // target: `http://192.168.0.78:8080`,
- target: `http://192.168.0.193:8080`,
- changeOrigin: true,
- pathRewrite: {
- ['^' + process.env.VUE_APP_API_HOST]: ''
- }
- }
- },
- // 移除 disableHostCheck 选项
- // 如果需要允许所有主机访问,可以使用 allowedHosts: 'all'
- allowedHosts: 'all'
- },
- transpileDependencies: true,
- }
|