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')); +}