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({ export default defineConfig({
plugins: [vue()], plugins: [vue()],
server: { server: {
host: '127.0.0.1',
port: 3000,
proxy: { proxy: {
'/api/v1': { '/api/v1': {
target: 'http://127.0.0.1:18080', target: 'http://127.0.0.1:19000',
changeOrigin: true, changeOrigin: true,
}, },
'/api/v1/ws': { '/api/v1/ws': {
target: 'ws://127.0.0.1:18080', target: 'ws://127.0.0.1:19000',
ws: true, ws: true,
} }
} }
} }
}) })