//本地环境配置
const local = {
    devServer: {
        port: 3000,
        proxy: {
            '/api/auth': {
                target: 'http://localhost:10001',
                ws: false,
                changeOrigin: true,
                pathRewrite: {
                    //默认所有请求都加了api前缀，需要去掉
                    '^/api/auth/ciop': '/auth/ciop'
                }
            },
            /*'/api/api/ciop': {
                target: 'http://localhost:11091',
                //target: 'http://132.97.54.60:58334',
                ws: false,
                changeOrigin: true,
                pathRewrite: {
                    //默认所有请求都加了api前缀，需要去掉
                    '^/api/api/ciop': '/ciop'
                }
            },
            '/api/report': {
                target: 'http://localhost:10003',
                //target: 'http://132.97.54.60:58334',
                ws: false,
                changeOrigin: true,
                pathRewrite: {
                    //默认所有请求都加了api前缀，需要去掉
                    '^/api/report': '/'
                }
            },
            '/api/app': {
                target: 'http://localhost:11092',
                //target: 'http://132.97.54.60:58334',
                ws: false,
                changeOrigin: true,
                pathRewrite: {
                    //默认所有请求都加了api前缀，需要去掉
                    '^/api/app': '/'
                }
            },*/

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

module.exports = local
