feat: Proxy the api address to the local nginx address #2350 (#2366)

### What problem does this PR solve?

feat: Proxy the api address to the local nginx address #2350

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu 2024-09-11 15:17:52 +08:00 committed by GitHub
parent d6e6c530d7
commit f789098e9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,7 +30,7 @@ export default defineConfig({
copy: ['src/conf.json'], copy: ['src/conf.json'],
proxy: { proxy: {
'/v1': { '/v1': {
target: 'http://localhost:9380/', target: 'http://127.0.0.1:9456/',
changeOrigin: true, changeOrigin: true,
ws: true, ws: true,
logger: console, logger: console,