From bdadb064c75663ab62e10eef006e652f3ad38bf7 Mon Sep 17 00:00:00 2001 From: Cypro Freelance <110410268+Proxyy587@users.noreply.github.com> Date: Mon, 24 Jun 2024 13:37:21 +0530 Subject: [PATCH] the era of error begins --- app/api/search/route.ts | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 app/api/search/route.ts diff --git a/app/api/search/route.ts b/app/api/search/route.ts deleted file mode 100644 index 130ea9e..0000000 --- a/app/api/search/route.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { getPages } from "@/app/source"; -import { createSearchAPI } from "fumadocs-core/search/server"; - -export const { GET } = createSearchAPI("advanced", { - indexes: getPages().map((page) => ({ - title: page.data.title, - structuredData: page.data.exports.structuredData, - id: page.url, - url: page.url, - })), -});