The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(docs): remove redundant header on ai python docs (#30364)
Charis26ec0e47f218
diff --git a/apps/docs/app/guides/(with-sidebar)/ai/python/[slug]/page.tsx b/apps/docs/app/guides/(with-sidebar)/ai/python/[slug]/page.tsxindex 578df9c3119..d6cc049c849 100644--- a/apps/docs/app/guides/(with-sidebar)/ai/python/[slug]/page.tsx+++ b/apps/docs/app/guides/(with-sidebar)/ai/python/[slug]/page.tsx@@ -1,9 +1,9 @@-import { type SerializeOptions } from 'next-mdx-remote/dist/types'+import type { SerializeOptions } from 'next-mdx-remote/dist/types'import { notFound } from 'next/navigation'import { relative } from 'path'import rehypeSlug from 'rehype-slug'-import { genGuideMeta } from '~/features/docs/GuidesMdx.utils'+import { genGuideMeta, removeRedundantH1 } from '~/features/docs/GuidesMdx.utils'import { GuideTemplate, newEditLink } from '~/features/docs/GuidesMdx.template'import { fetchRevalidatePerDay } from '~/features/helpers.fetch'import { UrlTransformFunction, linkTransform } from '~/lib/mdx/plugins/rehypeLinkTransform'@@ -84,7 +84,8 @@ const getContent = async ({ slug }: Params) => {`https://raw.githubusercontent.com/${org}/${repo}/${branch}/${docsDir}/${remoteFile}`)- const content = await response.text()+ let content = await response.text()+ content = removeRedundantH1(content)return {pathname: `/guides/ai/python/${slug}` satisfies `/${string}`,