Merge pull request #14243 from R041T/og-image-description-fix

fix for og image undefined description issue.
This commit is contained in:
Greg Richardson authored and GitHub committed 2023-05-10 15:03:01 -06:00
commit 0243904ff0
1 file changed
+1 -1
+1 -1
View File
@@ -30,7 +30,7 @@ export async function handler(req: Request) {
switch (site) {
case 'docs':
return new ImageResponse(( <Docs title={title} description={description} type={type} icon={icon} /> ),
return new ImageResponse(( <Docs title={title} description={description !== 'undefined' ? description : ''} type={type} icon={icon} /> ),
{
width: 1200,
height: 630,