The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
update types
Isaiah Hamilton50fa4d727892
diff --git a/apps/docs/layouts/guides/index.tsx b/apps/docs/layouts/guides/index.tsxindex d6f245d989e..465d78c8272 100644--- a/apps/docs/layouts/guides/index.tsx+++ b/apps/docs/layouts/guides/index.tsx@@ -67,11 +67,9 @@ const Layout: FC<Props> = (props) => {// page type, ie, Auth, Database, Storage etcconst ogPageType = asPath.split('/')[2]// open graph image url constructor- const ogImageUrl = `https://obuldanrptloktxcffvn.functions.supabase.co/og-images?site=docs${+ const ogImageUrl = encodeURIComponent(`https://obuldanrptloktxcffvn.functions.supabase.co/og-images?site=docs${ogPageType ? `&type=${ogPageType}` : ''- }&title=${encodeURIComponent(props.meta?.title)}&description=${encodeURIComponent(- props.meta?.description- )}`+ }&title=${props.meta?.title}&description=${props.meta?.description}`)return (<>diff --git a/supabase/functions/og-images/component/Docs.tsx b/supabase/functions/og-images/component/Docs.tsxindex bdef605d636..5b38579c085 100644--- a/supabase/functions/og-images/component/Docs.tsx+++ b/supabase/functions/og-images/component/Docs.tsx@@ -9,6 +9,18 @@ type Props = {const Docs = (props: Props) => {const { type, title, description, icon } = props++ let typeName: string | undefined = type?.replace(/-/g, ' ').replace(/\b\w/g, l => l.toUpperCase())+ let typeIcon: string | undefined = type?.toLowerCase()++ if (type === 'functions' || type === 'function') {+ typeName = 'Edge Functions'+ } else if (type === 'self-hosting') {+ typeIcon = 'resources'+ } else if (type === 'cli') {+ typeName = 'CLI'+ typeIcon = 'reference-cli'+ }return (<div@@ -34,9 +46,9 @@ const Docs = (props: Props) => {{type && (<><div tw="w-[50px] h-[50px] bg-[#164430] rounded-md flex items-center justify-center">- <img src={`https://raw.githubusercontent.com/supabase/supabase/master/apps/docs/public/img/icons/menu/${type.toLowerCase()}.svg`} width="80%" height="80%" />+ <img src={`https://raw.githubusercontent.com/supabase/supabase/master/apps/docs/public/img/icons/menu/${typeIcon}.svg`} width="80%" height="80%" /></div>- <span tw="text-[36px] text-[#ededed] ml-[16px]">{type.substring(0, 1).toUpperCase() + type.substring(1)}</span>+ <span tw="text-[36px] text-[#ededed] ml-[16px]">{typeName}</span></>)}</div>