diff --git a/frontend/src/app/api/config/route.ts b/frontend/src/app/api/config/route.ts index 401d7fa..ce600e8 100644 --- a/frontend/src/app/api/config/route.ts +++ b/frontend/src/app/api/config/route.ts @@ -24,7 +24,7 @@ export async function GET() { const config = { apiUrl: process.env.API_URL || process.env.NEXT_PUBLIC_API_URL - || 'http://localhost:8521', + || 'https://api-dev.gohorsejobs.com/', backofficeUrl: process.env.BACKOFFICE_URL || process.env.NEXT_PUBLIC_BACKOFFICE_URL || 'http://localhost:3001', diff --git a/frontend/src/contexts/ConfigContext.tsx b/frontend/src/contexts/ConfigContext.tsx index 58bb362..eb7aed3 100644 --- a/frontend/src/contexts/ConfigContext.tsx +++ b/frontend/src/contexts/ConfigContext.tsx @@ -10,7 +10,7 @@ export interface RuntimeConfig { } const defaultConfig: RuntimeConfig = { - apiUrl: process.env.NEXT_PUBLIC_API_URL || '/api/v1', + apiUrl: process.env.NEXT_PUBLIC_API_URL || 'https://api-dev.gohorsejobs.com/', backofficeUrl: process.env.NEXT_PUBLIC_BACKOFFICE_URL || 'http://localhost:3001', seederApiUrl: process.env.NEXT_PUBLIC_SEEDER_API_URL || 'http://localhost:3002', scraperApiUrl: process.env.NEXT_PUBLIC_SCRAPER_API_URL || 'http://localhost:3003',