fix: add white background for og images

This commit is contained in:
Mythie
2023-11-05 12:49:37 +11:00
parent 2af100ef6d
commit d27880b56b

View File

@ -56,7 +56,7 @@ export async function GET(_request: Request, { params: { slug } }: SharePageOpen
return new ImageResponse( return new ImageResponse(
( (
<div tw="relative flex h-full w-full"> <div tw="relative flex h-full w-full bg-white">
{/* @ts-expect-error Lack of typing from ImageResponse */} {/* @ts-expect-error Lack of typing from ImageResponse */}
<img src={shareFrameImage} alt="og-share-frame" tw="absolute inset-0 w-full h-full" /> <img src={shareFrameImage} alt="og-share-frame" tw="absolute inset-0 w-full h-full" />