From 6207753f06191a7dda0ff1b7d82f93f2f2d6a20a Mon Sep 17 00:00:00 2001 From: Adrian Lam Date: Sat, 25 Oct 2025 13:48:38 -0700 Subject: [PATCH] add llms full route to copy all docs --- docs/app/llms-full.txt/route.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 docs/app/llms-full.txt/route.ts diff --git a/docs/app/llms-full.txt/route.ts b/docs/app/llms-full.txt/route.ts new file mode 100644 index 000000000..8c429e190 --- /dev/null +++ b/docs/app/llms-full.txt/route.ts @@ -0,0 +1,11 @@ +import { getLLMText } from '@/lib/get-llm-text'; +import { source } from '@/lib/source'; + +export const revalidate = false; + +export async function GET() { + const scan = source.getPages().map(getLLMText); + const scanned = await Promise.all(scan); + + return new Response(scanned.join('\n\n')); +}