Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix for og image undefined description issue.

Rohit Maheshb03e75b9ce4b
diff --git a/supabase/functions/og-images/handler.tsx b/supabase/functions/og-images/handler.tsx
index 1e7b9ae98bf..7b7e3c44f02 100644
--- a/supabase/functions/og-images/handler.tsx
+++ b/supabase/functions/og-images/handler.tsx
@@ -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,