Álvaro Valenzuela Valdes commited on
Commit
4661795
·
1 Parent(s): 00c66be

feat: return to monolithic architecture for maximum hackathon stability

Browse files
Files changed (1) hide show
  1. frontend/lib/api.ts +2 -8
frontend/lib/api.ts CHANGED
@@ -16,14 +16,8 @@ export function getAPIBase(): string {
16
  return 'http://localhost:8000';
17
  }
18
 
19
- // 3. Hugging Face Space detection (FORCED CENTRALIZED BACKEND)
20
- if (hostname.includes('.hf.space')) {
21
- // The user explicitly wants to use their personal backend space
22
- const backendUrl = 'https://rewchile-andesai-backend.hf.space';
23
- console.log('[API] Hugging Face Space detected. Connecting to Central Backend:', backendUrl);
24
- return backendUrl;
25
- }
26
-
27
  return '';
28
  }
29
 
 
16
  return 'http://localhost:8000';
17
  }
18
 
19
+ // 3. Hugging Face & Production: Use relative paths (Monolithic mode)
20
+ // This is the most stable setup for the hackathon.
 
 
 
 
 
 
21
  return '';
22
  }
23