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:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user