fix: add white background for og images

This commit is contained in:
Mythie
2023-11-05 12:49:04 +11:00
parent 9edf88692c
commit 2af100ef6d

View File

@ -41,7 +41,7 @@ export default async function BlogPostOpenGraphImage({ params }: BlogPostOpenGra
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 */}
<img src={backgroundImage} alt="og-background" tw="absolute inset-0 w-full h-full" />