fix(security-32): 移除API路径重写以简化代理配置
This commit is contained in:
parent
865be9c373
commit
4bd772f0cd
@ -15,8 +15,7 @@ export default defineConfig(({ mode }) => {
|
||||
proxy: {
|
||||
'^/api': {
|
||||
target: env.VITE_API_URL || 'http://api:5050',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, '/api')
|
||||
changeOrigin: true
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user