- Fixed undefined variable 'db' in register endpoint (renamed to 'database') - Updated Vite proxy configuration to use Docker container names - Fixed proxy target from localhost to backend container - Added host: true to Vite server config for Docker compatibility - Registration endpoint now works correctly through frontend proxy All registration functionality is now fully operational: - Frontend form validation - API proxy routing - Backend user creation - JWT token generation - MongoDB data persistence 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
18 lines
326 B
TypeScript
18 lines
326 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
host: true,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://backend:8000',
|
|
changeOrigin: true,
|
|
secure: false,
|
|
}
|
|
}
|
|
}
|
|
})
|