mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-09 15:07:55 -05:00
* chore(deps): upgrade to nextjs 16 * upgraded fumadocs * ensure vercel uses bun * fix build * fix bui;d * remove redundant vercel.json
10 lines
292 B
TypeScript
10 lines
292 B
TypeScript
import type { InferPageType } from 'fumadocs-core/source'
|
|
import type { source } from '@/lib/source'
|
|
|
|
export async function getLLMText(page: InferPageType<typeof source>) {
|
|
const processed = await page.data.getText('processed')
|
|
return `# ${page.data.title} (${page.url})
|
|
|
|
${processed}`
|
|
}
|