Skip to content

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

fix: search index upload (#32904)

Charisbd0e979f8c52
diff --git a/apps/docs/scripts/search/sources/index.ts b/apps/docs/scripts/search/sources/index.ts
index d4110d95afb..0b7f08558a0 100644
--- a/apps/docs/scripts/search/sources/index.ts
+++ b/apps/docs/scripts/search/sources/index.ts
@@ -1,3 +1,4 @@
+import { sep } from 'node:path'
import {
GitHubDiscussionLoader,
type GitHubDiscussionSource,
@@ -93,9 +94,13 @@ export async function fetchSources() {
'spec/common-cli-sections.json'
).load()
- const guideSources = (await walk('content'))
- .filter(({ path }) => /\.mdx?$/.test(path))
- .filter(({ path }) => !ignoredFiles.includes(path))
+ const guideSources = (await walk('content/guides'))
+ .filter(
+ ({ path }) =>
+ /\.mdx?$/.test(path) &&
+ !ignoredFiles.includes(path) &&
+ !path.split(sep).some((part) => part.startsWith('_'))
+ )
.map((entry) => new MarkdownLoader('guide', entry.path, { yaml: true }).load())
const partnerIntegrationSources = (await fetchPartners()).map((partner) =>