Complete rewrite and added html to react element using svelte compiler

This commit is contained in:
Shivam Meena
2022-12-09 11:21:39 +05:30
parent 5f3692f078
commit 7965882383
15 changed files with 665 additions and 667 deletions

View File

@@ -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();