Skip to content

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

fix nimbus search (#45331)

Charisd897c7489670
diff --git a/packages/ai-commands/src/docs.ts b/packages/ai-commands/src/docs.ts
index e92b22e6bff..b51ae24580d 100644
--- a/packages/ai-commands/src/docs.ts
+++ b/packages/ai-commands/src/docs.ts
@@ -99,7 +99,10 @@ export async function clippy(
break
}
- const pagePath = pageSection.page.path
+ const pagePath = options?.useAltSearchIndex
+ ? // @ts-ignore
+ pageSection.page_nimbus.path
+ : pageSection.page.path
// Include source reference with each section
contextText += `[Source ${sourceIndex}: ${pagePath}]\n${content.trim()}\n---\n`