mirror of
https://github.com/LukeHagar/sveltekit-og.git
synced 2025-12-11 04:21:49 +00:00
Complete rewrite and added html to react element using svelte compiler
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import OG from './OG.svelte';
|
||||
import type { RequestHandler } from '@sveltejs/kit';
|
||||
import {componentToImageResponse} from "@ethercorps/sveltekit-og";
|
||||
import { componentToImageResponse } from '@ethercorps/sveltekit-og';
|
||||
|
||||
const fontFile = await fetch('https://og-playground.vercel.app/inter-latin-ext-700-normal.woff');
|
||||
const fontData: ArrayBuffer = await fontFile.arrayBuffer();
|
||||
|
||||
Reference in New Issue
Block a user