mirror of
https://github.com/LukeHagar/sveltekit-og.git
synced 2025-12-06 20:57:46 +00:00
v3 initialized
This commit is contained in:
@@ -19,11 +19,13 @@ const template = `
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
const fontFile = await fetch('https://og-playground.vercel.app/inter-latin-ext-400-normal.woff');
|
||||
const fontData: ArrayBuffer = await fontFile.arrayBuffer();
|
||||
|
||||
export const GET: RequestHandler = async () => {
|
||||
return ImageResponse(template, {
|
||||
export const GET: RequestHandler = async ({fetch}) => {
|
||||
|
||||
const fontFile = await fetch('https://og-playground.vercel.app/inter-latin-ext-400-normal.woff');
|
||||
const fontData: ArrayBuffer = await fontFile.arrayBuffer();
|
||||
|
||||
return new ImageResponse(template, {
|
||||
height: 400,
|
||||
width: 800,
|
||||
fonts: [
|
||||
|
||||
Reference in New Issue
Block a user