Files
FunGameServer-Test/webui/vite.config.ts
T
2026-08-28 19:44:46 +08:00

26 lines
545 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), tailwindcss()],
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:5000',
changeOrigin: true,
},
'/ws': {
target: 'ws://localhost:5000',
ws: true,
},
'/plugin': {
target: 'http://localhost:5000',
changeOrigin: true,
},
},
},
})