//开发环境配置
const dev = {
    devServer: {
        port: 3000,
        proxy: {
            '/api/auth': {
                target: 'http://172.18.101.171:10001',
                ws: false,
                changeOrigin: true,
                pathRewrite: {
                    //默认所有请求都加了api前缀，需要去掉
                    '^/api/auth/ciop': '/auth/ciop'
                }
            },

            '/api/manager': {
                target: 'http://172.18.101.171:10001',
                ws: false,
                changeOrigin: true,
                pathRewrite: {
                    //默认所有请求都加了api前缀，需要去掉
                    '^/api/manager': '/manager'
                }
            }
        }
    }
}

module.exports = dev
