diff options
| author | 2026-02-04 10:38:50 +0800 | |
|---|---|---|
| committer | 2026-02-04 10:38:50 +0800 | |
| commit | f656803e7419dc0ccbfdf86752e3284472fed164 (patch) | |
| tree | ae5ae76c4ff6877eff885da75a1db14c43fa0182 /packages/docs/react-router.config.ts | |
| parent | 192abdf4d5e2b06feec3bb232bf25e334435e431 (diff) | |
| parent | ac7a7bceec82a02cf490bc928d989663fd8a3a30 (diff) | |
| download | DropOut-f656803e7419dc0ccbfdf86752e3284472fed164.tar.gz DropOut-f656803e7419dc0ccbfdf86752e3284472fed164.zip | |
docs: comprehensive documentation overhaul with i18n support (English & Chinese) (#78)
Diffstat (limited to 'packages/docs/react-router.config.ts')
| -rw-r--r-- | packages/docs/react-router.config.ts | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/packages/docs/react-router.config.ts b/packages/docs/react-router.config.ts index cfcfbe4..51e8967 100644 --- a/packages/docs/react-router.config.ts +++ b/packages/docs/react-router.config.ts @@ -1,23 +1,5 @@ import type { Config } from '@react-router/dev/config'; -import { glob } from 'node:fs/promises'; -import { createGetUrl, getSlugs } from 'fumadocs-core/source'; - -const getUrl = createGetUrl('/docs'); export default { ssr: true, - async prerender({ getStaticPaths }) { - const paths: string[] = []; - const excluded: string[] = ['/api/search']; - - for (const path of getStaticPaths()) { - if (!excluded.includes(path)) paths.push(path); - } - - for await (const entry of glob('**/*.mdx', { cwd: 'content/docs' })) { - paths.push(getUrl(getSlugs(entry))); - } - - return paths; - }, } satisfies Config; |