Álvaro Valenzuela Valdes commited on
Commit
c90dcb6
·
1 Parent(s): ff8bae0

🚀 Fix: Export getAPIBase to resolve build error

Browse files
Files changed (1) hide show
  1. frontend/lib/api.ts +1 -1
frontend/lib/api.ts CHANGED
@@ -1,7 +1,7 @@
1
  import type { AnalysisHistoryItem, AnalysisResult, CompanyProfile, Tender, PurchaseOrder } from "./types";
2
 
3
  // Auto-detect API base URL based on environment
4
- function getAPIBase(): string {
5
  // 1. Explicit env var (highest priority)
6
  if (process.env.NEXT_PUBLIC_API_BASE) {
7
  console.log('[API] Using explicit NEXT_PUBLIC_API_BASE:', process.env.NEXT_PUBLIC_API_BASE);
 
1
  import type { AnalysisHistoryItem, AnalysisResult, CompanyProfile, Tender, PurchaseOrder } from "./types";
2
 
3
  // Auto-detect API base URL based on environment
4
+ export function getAPIBase(): string {
5
  // 1. Explicit env var (highest priority)
6
  if (process.env.NEXT_PUBLIC_API_BASE) {
7
  console.log('[API] Using explicit NEXT_PUBLIC_API_BASE:', process.env.NEXT_PUBLIC_API_BASE);