/*
 * @Author: your name
 * @Date: 2021-09-03 14:28:27
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /MedicalWisdomCheckSys/config/proxy.ts
 */
/**
 * 在生产环境 代理是无法生效的，所以这里没有生产环境的配置
 * -------------------------------
 * The agent cannot take effect in the production environment
 * so there is no configuration of the production environment
 * For details, please see
 * https://pro.ant.design/docs/deploy
 */

//118.31.245.65   线上
//112.124.59.133  测试
export default { 
  dev: {
    '/api': {
      target: 'http://112.124.59.133:8083/',
      changeOrigin: true,
      pathRewrite: { '^/api': '' },
    },
  },
  // mock: {
  //   '/api/': {
  //     target: 'http://localhost:8000',
  //     changeOrigin: true,
  //     pathRewrite: { '^': '' },
  //   },
  // },
  prod: {
    '/api/': {
      target: 'https://118.31.245.65:8083/',
      changeOrigin: true,
      pathRewrite: { '^': '' },
    },
  },
  pre: {
    '/api/': {
      target: 'your pre url',
      changeOrigin: true,
      pathRewrite: { '^': '' },
    },
  },
};
