Files
xzmaster/frontend/vite.config.ts
2026-03-20 12:50:41 +08:00

21 lines
378 B
TypeScript

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig({
plugins: [vue()],
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:8080',
changeOrigin: true
},
'/ws': {
target: 'ws://localhost:8080',
ws: true,
changeOrigin: true
}
}
}
})