Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
import { redirect } from "next/navigation";
/**
* Legacy route: the zoom map now lives at `/knowledge-graph` (it replaced the
* old node-link view under that name). Keep old `/zoom` links working, forwarding
* a `?focus=` deep-link if present.
*/
export default async function ZoomRedirect({
params,
searchParams,
}: {
params: Promise<{ id: string }>;
searchParams: Promise<{ focus?: string }>;
}) {
const { id } = await params;
const { focus } = await searchParams;
const qs = focus ? `?focus=${encodeURIComponent(focus)}` : "";
redirect(`/repos/${id}/knowledge-graph${qs}`);
}