fix: Add admin proxy (#13186)

### What problem does this PR solve?

fix: Add admin proxy

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2026-02-24 10:29:58 +08:00
committed by GitHub
parent 98e1d5aa5c
commit 59e9e77061

View File

@ -65,6 +65,11 @@ export default defineConfig(({ mode, command }) => {
overlay: false,
},
proxy: {
'/api/v1/admin': {
target: 'http://127.0.0.1:9381/',
changeOrigin: true,
ws: true,
},
'/api': {
target: 'http://127.0.0.1:9380/',
changeOrigin: true,