mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-29 07:01:44 +00:00
12 lines
292 B
TypeScript
12 lines
292 B
TypeScript
import { getLLMText, getSource } from '@/lib/source';
|
|
|
|
export const revalidate = false;
|
|
|
|
export async function GET() {
|
|
const docs = await getSource();
|
|
const scan = docs.getPages().map(getLLMText);
|
|
const scanned = await Promise.all(scan);
|
|
|
|
return new Response(scanned.join('\n\n'));
|
|
}
|