This commit is contained in:
2025-07-28 18:46:48 +08:00
parent 09c8cf2333
commit ab8fb27e23
5 changed files with 20 additions and 13 deletions

View File

@ -47,6 +47,12 @@ export default defineConfig(({ mode, command }: ConfigEnv): UserConfig => {
changeOrigin: true,
ws: true,
rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')
},
'/auth': {
target: env.VITE_APP_BASE_API,
changeOrigin: true,
ws: true,
rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')
}
}
},