This commit is contained in:
yuhaiming
2026-07-28 10:19:36 +08:00
parent f5dc2e2c3a
commit ab7ec17ae0
36 changed files with 1760 additions and 533 deletions

View File

@@ -24,9 +24,14 @@ export default defineConfig(({ mode, command }) => {
open: true,
proxy: {
[env.VITE_APP_BASE_API]: {
target: 'http://localhost:8080',
target: 'http://localhost:8001',
changeOrigin: true,
ws: true,
configure: (proxy) => {
proxy.on('proxyReq', (proxyReq) => {
proxyReq.removeHeader('origin');
});
},
rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')
}
}