Skip to content

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

fix: search sync + sentry errors issues (#37912)

Charis9551315f6af2
diff --git a/.github/workflows/search.yml b/.github/workflows/search.yml
index 9d5aa59959a..7baa26f4981 100644
--- a/.github/workflows/search.yml
+++ b/.github/workflows/search.yml
@@ -45,6 +45,7 @@ jobs:
sparse-checkout: |
apps/docs
apps/www/.env.local.example
+ examples
supabase
- uses: pnpm/action-setup@v4
@@ -63,7 +64,9 @@ jobs:
- name: Update embeddings
working-directory: ./apps/docs
if: ${{ !inputs.refresh }}
- run: pnpm run embeddings
+ run: |
+ pnpm run codegen:examples
+ pnpm run embeddings
- name: Refresh embeddings
working-directory: ./apps/docs
diff --git a/apps/docs/features/docs/GuidesMdx.template.tsx b/apps/docs/features/docs/GuidesMdx.template.tsx
index 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.tsx
index 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 logs
console.log('Could not read Markdown at path: %s', fullPath)