mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-21 12:41:39 +00:00
docs: add static search support for documentation site
This commit is contained in:
@@ -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' }];
|
||||
}
|
||||
Reference in New Issue
Block a user