/** @format */ import configFun from '../build/vite-default.config'; const dirname = __dirname; const proxy = { '/api/web': { // target: 'http://100.73.156.51:8080/api', target: 'http://100.86.13.179:8080/api', changeOrigin: true, rewrite: (path) => path.replace(/^\/api\/web/, ''), }, '/api/content': { target: 'http://100.86.13.144:8088/api', changeOrigin: true, rewrite: (path) => path.replace(/^\/api\/content/, ''), }, '/api/op_com': { target: 'http://100.86.13.109:8082/api', changeOrigin: true, rewrite: (path) => path.replace(/^\/api\/op_com/, ''), }, '/api/fileunify': { // target: 'http://100.73.156.51:8082/api', target: 'http://100.86.13.37:8085/api', changeOrigin: true, rewrite: (path) => path.replace(/^\/api\/fileunify/, ''), }, '/api/community': { // target: 'http://100.73.156.51:8080/api', target: 'http://100.86.13.13:8080/api', // target: 'http://100.86.13.123:8082/api', changeOrigin: true, rewrite: (path) => path.replace(/^\/api\/community/, ''), }, '/qa': { target: 'http://100.86.13.179:8080/qa', // target: 'http://100.86.13.206:8081/qa', changeOrigin: true, rewrite: (path) => path.replace(/^\/qa/, ''), }, }; export default configFun({ dirname, proxy, serviceMode: 'saas', baseDir: '../' });