feat: add monorepo

This commit is contained in:
Mauricio Siu
2024-10-27 22:16:31 -06:00
parent fd1f028077
commit 9321ed16ed
319 changed files with 79066 additions and 355 deletions

View File

@@ -0,0 +1,18 @@
import { getPages } from "@/app/source";
import { createI18nSearchAPI } from "fumadocs-core/search/server";
import { languages } from "@/i18n";
export const { GET } = createI18nSearchAPI("advanced", {
indexes: languages.map((lang) => {
return {
language: lang,
indexes: getPages(lang).map((page) => ({
id: page.url,
url: page.url,
title: page.data.title,
structuredData: page.data.exports.structuredData,
})),
};
}),
});