mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-25 06:48:12 -05:00
* feat(docs): added page nav buttons, static search, TOC footer * back to dynamic search since indexes are too large, added caching hour over hour
17 lines
484 B
TypeScript
17 lines
484 B
TypeScript
import { createFromSource } from 'fumadocs-core/search/server'
|
|
import { source } from '@/lib/source'
|
|
|
|
export const revalidate = 3600 // Revalidate every hour
|
|
|
|
export const { GET } = createFromSource(source, {
|
|
localeMap: {
|
|
en: { language: 'english' },
|
|
es: { language: 'spanish' },
|
|
fr: { language: 'french' },
|
|
de: { language: 'german' },
|
|
// ja and zh are not supported by the stemmer library, so we'll skip language config for them
|
|
ja: {},
|
|
zh: {},
|
|
},
|
|
})
|