mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-21 04:48:00 -05:00
13 lines
298 B
TypeScript
13 lines
298 B
TypeScript
import { getLLMText } from '@/lib/llms'
|
|
import { source } from '@/lib/source'
|
|
|
|
// cached forever
|
|
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'))
|
|
}
|