mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-07 20:37:44 +00:00
docs: add orama search support (#4366)
This commit is contained in:
14
docs/lib/export-search-indexes.ts
Normal file
14
docs/lib/export-search-indexes.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
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;
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user