From ec974e8b1fa5d03dd456756aaa1e550ed3b8cfa6 Mon Sep 17 00:00:00 2001 From: GoHorse Deploy Date: Sat, 7 Feb 2026 16:36:04 +0000 Subject: [PATCH] fix: point apiUrl to api-dev.gohorsejobs.com --- frontend/src/app/api/config/route.ts | 2 +- frontend/src/contexts/ConfigContext.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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',