The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: search sync + sentry errors issues (#37912)
Charis9551315f6af2
diff --git a/.github/workflows/search.yml b/.github/workflows/search.ymlindex 9d5aa59959a..7baa26f4981 100644--- a/.github/workflows/search.yml+++ b/.github/workflows/search.yml@@ -45,6 +45,7 @@ jobs:sparse-checkout: |apps/docsapps/www/.env.local.example+ examplessupabase- uses: pnpm/action-setup@v4@@ -63,7 +64,9 @@ jobs:- name: Update embeddingsworking-directory: ./apps/docsif: ${{ !inputs.refresh }}- run: pnpm run embeddings+ run: |+ pnpm run codegen:examples+ pnpm run embeddings- name: Refresh embeddingsworking-directory: ./apps/docsdiff --git a/apps/docs/features/docs/GuidesMdx.template.tsx b/apps/docs/features/docs/GuidesMdx.template.tsxindex e7067e6815f..76fbe6d397c 100644--- a/apps/docs/features/docs/GuidesMdx.template.tsx+++ b/apps/docs/features/docs/GuidesMdx.template.tsx@@ -90,7 +90,9 @@ const GuideTemplate = ({ meta, content, children, editLink, mdxOptions }: GuideT)}<hr className="not-prose border-t-0 border-b my-8" />- {content && <MDXRemoteBase source={content} options={mdxOptions} />}+ {content && (+ <MDXRemoteBase source={content} options={mdxOptions} customPreprocess={(x) => x} />+ )}{children}<footer className="mt-16 not-prose">diff --git a/apps/docs/features/docs/GuidesMdx.utils.tsx b/apps/docs/features/docs/GuidesMdx.utils.tsxindex 86088c497f3..50b5dede231 100644--- a/apps/docs/features/docs/GuidesMdx.utils.tsx+++ b/apps/docs/features/docs/GuidesMdx.utils.tsx@@ -73,7 +73,7 @@ const getGuidesMarkdownInternal = async (slug: string[]) => {editLink,}} catch (error: unknown) {- if (error instanceof FileNotFoundError) {+ if (error instanceof Error && error.cause instanceof FileNotFoundError) {// Not using console.error because this includes pages that are genuine// 404s and clutters up the logsconsole.log('Could not read Markdown at path: %s', fullPath)