/**
 * 在生产环境 代理是无法生效的，所以这里没有生产环境的配置
 * -------------------------------
 * 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
 */
 export default {
  dev: {
    '/kitchbase/': {
      target: 'http://localhost:5001/',
      changeOrigin: true,
      secure: false, //关闭证书验证
      pathRewrite: {
        '/kitchbase/': '',
      },
    },
    '/storemanagement/': {
      target: 'http://localhost:5002/',
      changeOrigin: true,
      secure: false, //关闭证书验证
      pathRewrite: {
        '/storemanagement/': '',
      },
    },
    '/storemanagementorder/': {
      target: 'http://localhost:5003/',
      changeOrigin: true,
      secure: false, //关闭证书验证
      pathRewrite: {
        '/storemanagementorder/': '',
      },
    },
    // Nginx发布的时候需要配置
    '/cos/':{
      target: 'https://hbl-test-1305371387.cos.ap-chengdu.myqcloud.com',
      changeOrigin: true,
      secure: false, //关闭证书验证
      pathRewrite: {
        '/cos/': '/',
      },
    }
  },
  test: {
    '/api/': {
      target: 'http://localhost:5006',
      changeOrigin: true,
      secure: false,
      pathRewrite: {
        '^': '',
      },
    },
  },
  pre: {
    '/api/': {
      target: 'http://localhost:5006',
      changeOrigin: true,
      secure: false,
      pathRewrite: {
        '^': '',
      },
    },
  },
};
// /**
//  * 在生产环境 代理是无法生效的，所以这里没有生产环境的配置
//  * -------------------------------
//  * 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
//  */
//  export default {
//   dev: {
//     '/api/': {
//       target: 'http://114.117.161.250:7002',
//       changeOrigin: true,
//       secure: false, //关闭证书验证
//       pathRewrite: {
//         '^': '',
//       },
//     },
//   },
//   test: {
//     '/api/': {
//       target: 'http://114.117.161.250:7002',
//       changeOrigin: true,
//       secure: false,
//       pathRewrite: {
//         '^': '',
//       },
//     },
//   },
//   pre: {
//     '/api/': {
//       target: 'http://114.117.161.250:7002',
//       changeOrigin: true,
//       secure: false,
//       pathRewrite: {
//         '^': '',
//       },
//     },
//   },
// };
