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-Muire67b0d187b09
diff --git a/apps/docs/layouts/guides/index.tsx b/apps/docs/layouts/guides/index.tsx
index a7ed42b4c51..d6f245d989e 100644
--- a/apps/docs/layouts/guides/index.tsx
+++ b/apps/docs/layouts/guides/index.tsx
@@ -66,16 +66,9 @@ const Layout: FC<Props> = (props) => {
// page type, ie, Auth, Database, Storage etc
const ogPageType = asPath.split('/')[2]
- const ogPageTypeSplit = ogPageType.split(' ')
- // capitalize each word for page type
- ogPageTypeSplit
- .map((word) => {
- return word[0].toUpperCase() + word.substring(1)
- })
- .join(' ')
// open graph image url constructor
const ogImageUrl = `https://obuldanrptloktxcffvn.functions.supabase.co/og-images?site=docs${
- ogPageTypeSplit ? `&type=${ogPageTypeSplit}` : ''
+ ogPageType ? `&type=${ogPageType}` : ''
}&title=${encodeURIComponent(props.meta?.title)}&description=${encodeURIComponent(
props.meta?.description
)}`