Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

docs: add static search support for documentation site

t8y2af9c3cb0259a
diff --git a/docs/app/[lang]/api/search/route.ts b/docs/app/[lang]/api/search/route.ts
new file mode 100644
index 0000000000..5ad6afa071
--- /dev/null
+++ b/docs/app/[lang]/api/search/route.ts
@@ -0,0 +1,13 @@
+import { createFromSource } from 'fumadocs-core/search/server';
+import { source } from '@/lib/source';
+
+export const revalidate = false;
+export const { staticGET: GET } = createFromSource(source, {
+ localeMap: {
+ cn: { language: 'english' },
+ },
+});
+
+export function generateStaticParams() {
+ return [{ lang: 'en' }, { lang: 'cn' }];
+}