import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import tailwindcss from '@tailwindcss/vite'; const backendTarget = 'http://localhost:3013'; export default defineConfig({ plugins: [react(), tailwindcss()], build: { outDir: 'dist', sourcemap: false, }, server: { port: 5174, proxy: { '/api': { target: backendTarget, changeOrigin: true, }, '/ws': { target: backendTarget, changeOrigin: true, ws: true, }, }, }, });