jiangping
2024-07-31 bed3eee53f72f47f49b493772a4525e6c6b3e7be
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// 详细配置请参考https://cli.vuejs.org/zh/config/#vue-config-js
// const outputDir = process.env.VUE_APP_CONTEXT_PATH.substring(1, process.env.VUE_APP_CONTEXT_PATH.length - 1)
const path = require('path')
module.exports = {
  publicPath: process.env.VUE_APP_CONTEXT_PATH,
  outputDir: 'admin',
  assetsDir: 'static',
  lintOnSave: false,
  devServer: {
    host: '0.0.0.0',
    port: 10012,
    proxy: {
      [process.env.VUE_APP_API_PREFIX]: {
        // http://192.168.0.134:10028   任康
        // http://192.168.0.110:10013   磊磊
        // http://192.168.0.132:10013   帅哥
        // http://192.168.0.176:10028   萍姐
        // http://192.168.0.186:10028   任康
        // https://dmtest.ahapp.net/admin_api   测试服
        // http://10.10.99.63/admin_interface/  最新测试服(内网)
        // http://218.23.218.228:8018/admin_interface   最新测试服(外网)
        // target: 'http://218.23.218.228:8018/admin_interface',
        // http://218.23.218.228:9912/admin_interface
        // http://facepay.huasunsolar.com/admin_interface
        target: 'http://localhost/admin_interface',
        changeOrigin: true,
        pathRewrite: {
          [`^${[process.env.VUE_APP_API_PREFIX]}`]: ''
        }
      }
    }
  },
  configureWebpack: {
    resolve: {
      alias: {
        '@': path.resolve(__dirname, 'src')
      }
    }
  }
}