mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
0dfb539d2d
* swap docs * fix build error --------- Co-authored-by: Fuma Nama <fuma-nama@noreply.com>
13 lines
364 B
TypeScript
13 lines
364 B
TypeScript
import { source } from '@/app/source';
|
|
import { createSearchAPI } from 'fumadocs-core/search/server';
|
|
|
|
export const { GET } = createSearchAPI('advanced', {
|
|
indexes: source.getPages().map((page) => ({
|
|
title: page.data.title,
|
|
description: page.data.description,
|
|
structuredData: page.data.structuredData,
|
|
id: page.url,
|
|
url: page.url,
|
|
})),
|
|
});
|