Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
| 1 | import { createSearchAPI } from 'fumadocs-core/search/server'; |
| 2 | import { getDocsSearchIndexes } from '@/lib/search-index'; |
| 3 | |
| 4 | // Fallback/local search endpoint. Production search uses Algolia from the client |
| 5 | // when NEXT_PUBLIC_ALGOLIA_* variables are configured. |
| 6 | export const { GET } = createSearchAPI('advanced', { |
| 7 | indexes: getDocsSearchIndexes, |
| 8 | }); |