let proxy = {
  "/api/ecs_core": {
    target: "http://ecs-dev.qmth.com.cn:8000", //代理跨域转地址，基础信息
    changeOrigin: true
  },
  "/facepp/v3": {
    secure: false,
    target: "https://api-cn.faceplusplus.com",
    changeOrigin: true
  },
  "/exam-cloud-test/student_base_photo": {
    secure: false,
    target: "http://v0.api.upyun.com",
    changeOrigin: true
  },
  "/exam-cloud-test": {
    secure: false,
    target: "http://v0.api.upyun.com",
    changeOrigin: true
  }
};
let proxyProd = {
  "/api/ecs_core": {
    target: "https://ecs.qmth.com.cn:8878", //代理跨域转地址，基础信息
    changeOrigin: true
  },
  "/facepp/v3": {
    secure: false,
    target: "https://api-cn.faceplusplus.com",
    changeOrigin: true
  },
  "/exam-cloud/student_base_photo/": {
    secure: false,
    target: "http://v0.api.upyun.com",
    changeOrigin: true
  },
  "/exam-cloud": {
    secure: false,
    target: "http://v0.api.upyun.com",
    changeOrigin: true
  }
};

module.exports = {
  devServer: {
    proxy: proxyProd
  }
};
