/*
 * @Author: your name
 * @Date: 2022-01-07 10:00:52
 * @LastEditTime: 2023-10-27 09:43:05
 * @LastEditors: code4eat awesomedema@gmail.com
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: /KC-MiddlePlatform/config/proxy.ts
 */

//118.31.245.65  7004 线上
//112.124.59.133 7001 测试

//192.168.50.190:7001

const proxy: { [key: string]: any } = {
  dev: {
    //绩效管理
    '/gateway': {
      //target: 'http://47.96.149.190:5000',
      target: 'http://120.27.235.181:5000',
      changeOrigin: true,
      // pathRewrite: { '^/master': '' },
    },
    //老版评审管理
    '/api': {
      target: 'http://120.27.235.181:8083/',
      changeOrigin: true,
      pathRewrite: { '^/api': '' },
    },
    //新版评审管理
    '/view': {
      target: 'http://120.27.235.181:8085/',
      changeOrigin: true,
      // pathRewrite: { '^/view': '' },
    },
  },
  mock: {
    '/master/': {
      target: 'http://localhost:8000',
      changeOrigin: true,
      pathRewrite: { '^': '' },
      
    },
  },
};

export default proxy;


