From 1308ca5a2cf3f828f6754b546d4040bee92772eb Mon Sep 17 00:00:00 2001 From: wsy182 <2392948297@qq.com> Date: Tue, 24 Mar 2026 09:03:11 +0800 Subject: [PATCH] Update vite.config.ts --- vite.config.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index b6109ff..9169e94 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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, } } } -}) \ No newline at end of file +})