Fix bug with llms.mdx route

This commit is contained in:
Morgan Dean
2025-07-30 19:08:58 +01:00
parent 0b90ab907d
commit cd752f3bfd

View File

@@ -10,7 +10,7 @@ export async function GET(
{ params }: { params: Promise<{ slug?: string[] }> }
) {
const { slug } = await params;
const page = source.getPage(['docs', ...slug!]);
const page = source.getPage(slug);
if (!page) notFound();
return new NextResponse(await getLLMText(page));