Function
getPageImage
(page: InferPageType<typeof source>)
Source from the content-addressed store, hash-verified
| 40 | }); |
| 41 | |
| 42 | export function getPageImage(page: InferPageType<typeof source>) { |
| 43 | const segments = [...page.slugs, 'image.png']; |
| 44 | |
| 45 | return { |
| 46 | segments, |
| 47 | url: `/og/docs/${segments.join('/')}`, |
| 48 | }; |
| 49 | } |
| 50 | |
| 51 | export async function getLLMText(page: InferPageType<typeof source>) { |
| 52 | const processed = await page.data.getText('processed'); |
Callers
nothing calls this directly
Tested by
no test coverage detected