E-Voting Developer 839ca5461c Fix: Login system and clean up duplicate src/ folder
- Fixed LoginPage.js to use correct API endpoint (localhost:8000)
- Fixed prop naming (onLoginSuccess → onLogin)
- Fixed data structure mapping (voter.email → email, etc)
- Removed duplicate src/ folder structure
- Updated DashboardPage.js with proper API endpoints
- Added lucide-react dependency
- Fixed docker-compose and Dockerfile.backend for proper execution
- Cleaned up console logs
- System fully working with Docker deployment
2025-11-05 23:25:43 +01:00

8 lines
264 B
JavaScript

// Runtime API configuration
// This file is served from public/ and can be updated without rebuilding
window.API_CONFIG = {
API_BASE_URL: window.location.hostname === 'localhost'
? 'http://localhost:8000'
: `http://${window.location.hostname}:8000`
};