import { toReactElement, satori } from '@ethercorps/sveltekit-og'; const htmlString = `

Ready to dive in? Start your free trial today.

Get started
Learn more
`; const newNode = toReactElement(htmlString); /** @type {import('./$types').PageServerLoad} */ export async function load() { const fontFile400 = await fetch( 'https://og-playground.vercel.app/inter-latin-ext-400-normal.woff' ); const fontData400 = await fontFile400.arrayBuffer(); const svg = await satori(newNode, { height: 350, width: 500, fonts: [ { name: 'sans serif', data: fontData400, style: 'normal', weight: 700 } ] }); return { svg }; }