import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import path from 'path'; const ReactCompilerConfig = { compilationMode: 'infer' }; export default defineConfig({ plugins: [ react({ babel: { plugins: [ ['babel-plugin-react-compiler', ReactCompilerConfig], ], }, }), ], resolve: { alias: { '@': path.resolve(__dirname, './src'), }, }, server: { port: 3000, host: '0.0.0.0', // Allow external connections for container allowedHosts: [ 'localhost', 'motovaultpro.com', '.motovaultpro.com' ], }, });