- 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
8 lines
264 B
JavaScript
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`
|
|
};
|