diff --git a/src/app/api/wiki/projects/route.ts b/src/app/api/wiki/projects/route.ts index f87ed35d9..864bcd915 100644 --- a/src/app/api/wiki/projects/route.ts +++ b/src/app/api/wiki/projects/route.ts @@ -31,9 +31,9 @@ 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 PROJECTS_API_ENDPOINT = `${PYTHON_BACKEND_URL}/api/processed_projects`; -const CACHE_API_ENDPOINT = `${PYTHON_BACKEND_URL}/api/wiki_cache`; +const TARGET_SERVER_BASE_URL = process.env.SERVER_BASE_URL || 'http://localhost:8001'; +const PROJECTS_API_ENDPOINT = `${TARGET_SERVER_BASE_URL}/api/processed_projects`; +const CACHE_API_ENDPOINT = `${TARGET_SERVER_BASE_URL}/api/wiki_cache`; export async function GET() { try {