mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-06 12:27:44 +00:00
15 lines
388 B
TypeScript
15 lines
388 B
TypeScript
import { source } from "@/lib/source";
|
|
import type { OramaDocument } from "fumadocs-core/search/orama-cloud";
|
|
|
|
export async function exportSearchIndexes() {
|
|
return source.getPages().map((page) => {
|
|
return {
|
|
id: page.url,
|
|
structured: page.data.structuredData,
|
|
url: page.url,
|
|
title: page.data.title,
|
|
description: page.data.description,
|
|
} satisfies OramaDocument;
|
|
});
|
|
}
|