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