|
@@ -8,41 +8,20 @@ let proxy = {
|
|
target: "https://api-cn.faceplusplus.com",
|
|
target: "https://api-cn.faceplusplus.com",
|
|
changeOrigin: true
|
|
changeOrigin: true
|
|
},
|
|
},
|
|
- "/exam-cloud-test/student_base_photo": {
|
|
|
|
|
|
+ [process.env.VUE_APP_UPYUN_BUCKETURL]: {
|
|
secure: false,
|
|
secure: false,
|
|
target: "http://v0.api.upyun.com",
|
|
target: "http://v0.api.upyun.com",
|
|
changeOrigin: true
|
|
changeOrigin: true
|
|
},
|
|
},
|
|
- "/exam-cloud-test": {
|
|
|
|
|
|
+ [process.env.VUE_APP_UPYUN_BUCKET]: {
|
|
secure: false,
|
|
secure: false,
|
|
target: "http://v0.api.upyun.com",
|
|
target: "http://v0.api.upyun.com",
|
|
changeOrigin: true
|
|
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 = {
|
|
module.exports = {
|
|
devServer: {
|
|
devServer: {
|
|
- proxy: proxy
|
|
|
|
|
|
+ proxy
|
|
}
|
|
}
|
|
};
|
|
};
|