From 9a26cc2beed4469071d9ff82b6cda91230b5706e Mon Sep 17 00:00:00 2001 From: William Le Roux Date: Fri, 15 Aug 2025 15:00:19 +0300 Subject: [PATCH] fix projects route env variable PYTHON_BACKEND_HOST replaced by SERVER_BASE_URL --- src/app/api/wiki/projects/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/api/wiki/projects/route.ts b/src/app/api/wiki/projects/route.ts index f87ed35d..ac92a487 100644 --- a/src/app/api/wiki/projects/route.ts +++ b/src/app/api/wiki/projects/route.ts @@ -31,7 +31,7 @@ function isDeleteProjectCachePayload(obj: unknown): obj is DeleteProjectCachePay } // Ensure this matches your Python backend configuration -const PYTHON_BACKEND_URL = process.env.PYTHON_BACKEND_HOST || 'http://localhost:8001'; +const PYTHON_BACKEND_URL = process.env.SERVER_BASE_URL || 'http://localhost:8001'; const PROJECTS_API_ENDPOINT = `${PYTHON_BACKEND_URL}/api/processed_projects`; const CACHE_API_ENDPOINT = `${PYTHON_BACKEND_URL}/api/wiki_cache`; @@ -101,4 +101,4 @@ export async function DELETE(request: Request) { const message = error instanceof Error ? error.message : 'An unknown error occurred'; return NextResponse.json({ error: `Failed to delete project: ${message}` }, { status: 500 }); } -} \ No newline at end of file +}