mirror of
https://github.com/trycua/computer.git
synced 2026-01-03 03:49:58 -06:00
Fix bug with llms.mdx route
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user