import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import path from 'path' // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], resolve: { alias: { '@': path.resolve(__dirname, './src'), }, }, optimizeDeps: { include: ['dompurify'], }, server: { port: 5173, // Direct requests to FastAPI backend - no proxy needed }, build: { // Disable source maps in production for security sourcemap: false, // Production optimizations minify: 'terser', terserOptions: { compress: { drop_console: true, // Remove console.log in production drop_debugger: true, }, }, }, })