Update vite.config.ts

This commit is contained in:
2026-03-24 09:03:11 +08:00
parent fba407c1bf
commit 1308ca5a2c

View File

@@ -4,15 +4,17 @@ import vue from '@vitejs/plugin-vue'
export default defineConfig({
plugins: [vue()],
server: {
host: '127.0.0.1',
port: 3000,
proxy: {
'/api/v1': {
target: 'http://127.0.0.1:18080',
target: 'http://127.0.0.1:19000',
changeOrigin: true,
},
'/api/v1/ws': {
target: 'ws://127.0.0.1:18080',
target: 'ws://127.0.0.1:19000',
ws: true,
}
}
}
})
})