You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.1 KiB
38 lines
1.1 KiB
11 months ago
|
/** @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: '../' });
|