Backup: 2025-06-07 19:48 - Script test

[Restore from backup: vip-coordinator-backup-2025-06-07-19-48-script-test]
This commit is contained in:
2025-06-07 19:48:00 +02:00
parent 8fb00ec041
commit dc4655cef4
103 changed files with 16396 additions and 6143 deletions

View File

@@ -1,6 +1,10 @@
// API Configuration
// Use environment variable with fallback to localhost for development
export const API_BASE_URL = (import.meta as any).env.VITE_API_URL || 'http://localhost:3000';
// VITE_API_URL must be set at build time - no fallback to prevent production issues
export const API_BASE_URL = (import.meta as any).env.VITE_API_URL;
if (!API_BASE_URL) {
throw new Error('VITE_API_URL environment variable is required');
}
// Helper function for API calls
export const apiCall = (endpoint: string, options?: RequestInit) => {