193cadef27
Frontend fixes: - Disable verbatimModuleSyntax in TypeScript config to fix module imports - Add displayName to critical React components for better production debugging - Configure Vite build with manual chunks for better code splitting - Enable sourcemaps for production debugging Backend fixes: - Remove updated_at field from events table insert (column doesn't exist) - Fix SQL error that was causing 500 errors on event creation These changes resolve: - React error #130 that occurred during login and event creation - 500 Internal Server Error when creating new events - Better error tracking in production builds 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
33 lines
671 B
TypeScript
33 lines
671 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
build: {
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks: {
|
|
'react-vendor': ['react', 'react-dom', 'react-router-dom'],
|
|
'ui-vendor': ['lucide-react', 'react-toastify'],
|
|
},
|
|
},
|
|
},
|
|
sourcemap: true,
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
host: true,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://backend:3000',
|
|
changeOrigin: true,
|
|
},
|
|
'/photos': {
|
|
target: 'http://backend:3000',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
})
|