module.exports = {
    chainWebpack: config => {
        config.plugins.delete('case-sensitive-paths')
    },
    devServer: {
        port: 1887,
        proxy: {
            '/api': {
                // target: 'http://10.165.0.173:8000',
                // target: 'http://192.168.1.115:8000',
                target: 'http://39.98.44.136:6013',
                ws: true,
                changeOrigin: true,
                pathRewrite: {
                    '^/api': '/'
                }
            },
            '/qq/map': {
                //本地服务接口地址
                target: 'https://apis.map.qq.com',
                ws: true,
                changeOrigin: true,
                pathRewrite: {
                    '^/qq/map': '/'
                }
            }
        }
    }
};