import react from '@vitejs/plugin-react-swc' import path from 'path' import { defineConfig } from 'vite' export default defineConfig(() => ({ plugins: [react({ tsDecorators: true })], root: path.join(__dirname, 'src/client'), publicDir: path.join(__dirname, 'public'), server: { port: 5000, host: '0.0.0.0', // Expose the server to the network }, optimizeDeps: { exclude: ['assets'], }, }))