import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import tailwindcss from '@tailwindcss/vite'; export default defineConfig({ plugins: [react(), tailwindcss()], server: { port: 5880, host: true, allowedHosts: true, watch: { usePolling: true, interval: 500, ignored: ['**/logs/**', '**/node_modules/**', '**/dist/**', '**/.git/**'], }, proxy: { '/api': { target: 'http://localhost:5880', changeOrigin: true, }, }, }, });