Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/app/api/wiki/projects/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`;

Expand Down Expand Up @@ -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 });
}
}
}