Skip to content

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

Update index.tsx

Jonathan Summers-Muiraf7bdc123c8b
diff --git a/apps/docs/layouts/guides/index.tsx b/apps/docs/layouts/guides/index.tsx
index e1ee0e97123..316ab073b2f 100644
--- a/apps/docs/layouts/guides/index.tsx
+++ b/apps/docs/layouts/guides/index.tsx
@@ -66,11 +66,19 @@ const Layout: FC<Props> = (props) => {
const ogPageType = asPath.split('/')[2]
+ const ogImageUrl = `https://obuldanrptloktxcffvn.functions.supabase.co/og-images?site=docs${
+ ogPageType ? `&type=${ogPageType}` : ''
+ }&title=${encodeURIComponent(props.meta?.title)}&description=${encodeURIComponent(
+ props.meta?.description
+ )}`
+
return (
<>
<Head>
<title>{props.meta?.title} | Supabase Docs</title>
<meta name="description" content={props.meta?.description} />
+ <meta property="og:image" content={ogImageUrl} />
+ <meta name="twitter:image" content={ogImageUrl} />
</Head>
<NextSeo
canonical={props.meta?.canonical ?? `https://supabase.com/docs${asPath}`}