Files
matrix-show/frontend/vite.config.ts
T
2026-06-04 17:59:53 +08:00

21 lines
392 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:8000',
changeOrigin: true,
},
'/socket.io': {
target: 'http://localhost:8000',
changeOrigin: true,
ws: true,
},
},
},
})