Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Revert "disable index"

Nicolas6d66b735d617
diff --git a/apps/api/src/services/index.ts b/apps/api/src/services/index.ts
index 1e1b0ba4e..d0f7d5375 100644
--- a/apps/api/src/services/index.ts
+++ b/apps/api/src/services/index.ts
@@ -131,7 +131,7 @@ export async function saveIndexToGCS(id: string, doc: {
}
}
-export const useIndex = false &&
+export const useIndex =
process.env.INDEX_SUPABASE_URL !== "" &&
process.env.INDEX_SUPABASE_URL !== undefined;