/** @format */ import configFun from '../build/vite-default.config'; const dirname = __dirname; const proxy = { '/api/op_com': { target: 'http://100.86.13.61:8082/api', changeOrigin: true, rewrite: (path) => path.replace(/^\/api\/op_com/, ''), }, '/api/op': { target: 'http://100.86.13.61:8086/api', changeOrigin: true, rewrite: (path) => path.replace(/^\/api\/op/, ''), }, '/api/file': { // target: 'http://100.73.156.51:8082/api', target: 'http://100.86.13.29:8082/api', changeOrigin: true, rewrite: (path) => path.replace(/^\/api\/file/, ''), }, '/api/person': { target: 'http://100.86.13.246:8083/api', changeOrigin: true, rewrite: (path) => path.replace(/^\/api\/person/, ''), }, '/api/resource': { target: 'http://100.86.13.61:8086/api', changeOrigin: true, rewrite: (path) => path.replace(/^\/api\/resource/, ''), }, '/qa': { target: 'http://100.86.13.61:8086/qa', changeOrigin: true, rewrite: (path) => path.replace(/^\/qa/, ''), }, // '/api/community': { // target: 'https://manage.community.sk1111.cn/api', // changeOrigin: true, // rewrite: (path) => path.replace(/^\/api\/community/, ''), // }, '/api': { target: 'http://op.community.sk1111.cn', changeOrigin: true, }, // '/api': { // target: 'http://op.jlf.community.ddjl.cn/', // changeOrigin: true, // }, }; export default configFun({ dirname, proxy, serviceMode: 'saas', baseDir: '../' });