module.exports = {
    devServer: {
        open: process.platform === 'darwin',
        host: '0.0.0.0',
        https: false,
        hotOnly: false,
        // 查阅 https://github.com/vuejs/vue-doc-zh-cn/vue-cli/cli-service.md#配置代理
        proxy: {
            '/user': {
                target: 'https://pay.dayaedu.com',
                // target: 'http://192.168.3.27:8005',
                // target: 'http://192.168.3.27:9000',
                changeOrigin: true,
                ws: true,
                '^/user': '/user',
                xfwd: true
            },
            '/yqpay': {
                target: 'https://pay.dayaedu.com',
                // target: 'http://192.168.3.27:9000',
                // target: 'http://192.168.3.28:8005',
                changeOrigin: true,
                ws: true,
                '^/yqpay': '/yqpay',
                xfwd: true
            }
        }, // string | Object
    }
}