This commit is contained in:
 Илья Шалонин 2025-10-29 13:43:43 +05:00
commit 8538ab969a
434 changed files with 44051 additions and 0 deletions

View file

@ -0,0 +1,11 @@
import { app } from "@repo/api";
import { handle } from "hono/vercel";
const handler = handle(app);
export const GET = handler;
export const POST = handler;
export const PUT = handler;
export const PATCH = handler;
export const DELETE = handler;
export const OPTIONS = handler;

View file

@ -0,0 +1,20 @@
import { config } from "@repo/config";
import { createI18nSearchAPI } from "fumadocs-core/search/server";
import { docsSource } from "../../docs-source";
export const { GET } = createI18nSearchAPI("advanced", {
i18n: {
defaultLanguage: config.i18n.defaultLocale,
languages: Object.keys(config.i18n.locales),
},
indexes: docsSource.getLanguages().flatMap((entry) =>
entry.pages.map((page) => ({
title: page.data.title,
description: page.data.description,
structuredData: page.data.structuredData,
id: page.url,
url: page.url,
locale: entry.language,
})),
),
});