/** @format */ import configFun from '../build/vite-low-version.config'; const dirname = __dirname; const proxy = { '/api/exam_op/qa': { target: 'http://100.86.13.44:8085/qa', changeOrigin: true, rewrite: (path) => path.replace(/^\/api\/exam_op\/qa/, ''), }, '/api/exam_op': { target: 'http://100.86.13.44:8085/api', changeOrigin: true, rewrite: (path) => path.replace(/^\/api\/exam_op/, ''), }, '/api/exam_file': { target: 'http://100.86.13.44:8084/api', changeOrigin: true, rewrite: (path) => path.replace(/^\/api\/exam_file/, ''), }, '/api/exam_coupon': { target: 'http://100.86.13.44:8086/api', changeOrigin: true, rewrite: (path) => path.replace(/^\/api\/exam_coupon/, ''), }, '/api/exam_person': { target: 'http://100.86.13.44:8082/api', changeOrigin: true, rewrite: (path) => path.replace(/^\/api\/exam_person/, ''), }, // '/qa': { // target: 'http://100.86.13.123:8082/qa', // changeOrigin: true, // rewrite: (path) => path.replace(/^\/qa/, ''), // }, }; export default configFun({ dirname, proxy, serviceMode: 'saas', baseDir: '../' });