This commit is contained in:
qsh
2025-10-29 17:52:02 +08:00
parent 3bbb2e5ecd
commit 93a1390eb9
5 changed files with 173 additions and 2 deletions

View File

@@ -40,11 +40,11 @@ export default ({ command, mode }) => {
changeOrigin: true,
rewrite: (path) => path.replace(new RegExp(`^/call-api`), '')
},
['/crm-api']: {
['/crm-api/']: {
target: env.VITE_BASE_URL,
ws: false,
changeOrigin: true,
rewrite: (path) => path.replace(new RegExp(`^/crm-api`), '')
rewrite: (path) => path.replace(new RegExp(`^/crm-api/`), '')
},
['/applet-api']: {
target: env.VITE_APPLET_URL,
@@ -57,6 +57,12 @@ export default ({ command, mode }) => {
ws: false,
changeOrigin: true,
rewrite: (path) => path.replace(new RegExp(`^/tiku-api`), '')
},
['/out-api']: {
target: 'http://cloud.ahfkbg.com',
ws: false,
changeOrigin: true,
rewrite: (path) => path.replace(new RegExp(`^/out-api`), '')
}
}
},