fix: add white background for og images

This commit is contained in:
Mythie
2023-11-05 12:49:04 +11:00
parent 3009088b0e
commit 48d7afe9f4

View File

@ -41,7 +41,7 @@ export default async function BlogPostOpenGraphImage({ params }: BlogPostOpenGra
return new ImageResponse( return new ImageResponse(
( (
<div tw="relative h-full w-full flex flex-col items-center justify-center text-center"> <div tw="relative h-full w-full flex flex-col items-center justify-center text-center bg-white">
{/* @ts-expect-error Lack of typing from ImageResponse */} {/* @ts-expect-error Lack of typing from ImageResponse */}
<img src={backgroundImage} alt="og-background" tw="absolute inset-0 w-full h-full" /> <img src={backgroundImage} alt="og-background" tw="absolute inset-0 w-full h-full" />