Skip to content

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

move docs to og generator

Isaiah Hamiltonbc0a03bbf604
diff --git a/apps/docs/layouts/guides/index.tsx b/apps/docs/layouts/guides/index.tsx
index e3b64828a60..14a5d08ba33 100644
--- a/apps/docs/layouts/guides/index.tsx
+++ b/apps/docs/layouts/guides/index.tsx
@@ -60,6 +60,8 @@ const Layout: FC<Props> = (props) => {
const hasTableOfContents = tocList.length > 0
+ const ogPageType = asPath.split('/')[2]
+
return (
<>
<NextSeo
@@ -71,7 +73,7 @@ const Layout: FC<Props> = (props) => {
url: `https://supabase.com/docs${asPath}`,
images: [
{
- url: `https://supabase.com/docs/img/supabase-og-image.png`,
+ url: `https://obuldanrptloktxcffvn.functions.supabase.co/og-images?site=docs${ogPageType ? `&type=${ogPageType}` : ''}&title=${props.meta?.title}&description=${props.meta?.description}`,
},
],
}}