mirror of
https://github.com/LukeHagar/sveltekit-og.git
synced 2025-12-06 04:21:37 +00:00
Merge pull request #25 from jasongitmail/patch-4
Convert tab to space for Usage code in README
This commit is contained in:
22
README.md
22
README.md
@@ -46,17 +46,17 @@ const fontFile = await fetch('https://og-playground.vercel.app/inter-latin-ext-4
|
|||||||
const fontData: ArrayBuffer = await fontFile.arrayBuffer();
|
const fontData: ArrayBuffer = await fontFile.arrayBuffer();
|
||||||
|
|
||||||
export const GET: RequestHandler = async () => {
|
export const GET: RequestHandler = async () => {
|
||||||
return await ImageResponse(template, {
|
return await ImageResponse(template, {
|
||||||
height: 630,
|
height: 630,
|
||||||
width: 1200,
|
width: 1200,
|
||||||
fonts: [
|
fonts: [
|
||||||
{
|
{
|
||||||
name: 'Inter Latin',
|
name: 'Inter Latin',
|
||||||
data: fontData,
|
data: fontData,
|
||||||
weight: 400
|
weight: 400
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user