diff options
| author | 2026-02-10 13:28:23 +0800 | |
|---|---|---|
| committer | 2026-02-10 13:28:23 +0800 | |
| commit | 21ec63eaaf2ab1cb088f1c1787200a91cce460a5 (patch) | |
| tree | d3ffcbd1a53b4567c1ba5995a49ecf656fb3c596 /packages/docs/app/routes.ts | |
| parent | 3bc1e77f3922d5bdb824d1249971738a8d175f41 (diff) | |
| download | DropOut-21ec63eaaf2ab1cb088f1c1787200a91cce460a5.tar.gz DropOut-21ec63eaaf2ab1cb088f1c1787200a91cce460a5.zip | |
chore: sync with main [skip ci] (#91)
Co-authored-by: NtskwK <natsukawa247@outlook.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Diffstat (limited to 'packages/docs/app/routes.ts')
| -rw-r--r-- | packages/docs/app/routes.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/docs/app/routes.ts b/packages/docs/app/routes.ts new file mode 100644 index 0000000..2997ecf --- /dev/null +++ b/packages/docs/app/routes.ts @@ -0,0 +1,16 @@ +import { route, type RouteConfig } from '@react-router/dev/routes'; + +export default [ + // Home routes: / and /:lang + route(':lang?', 'routes/home.tsx', { id: 'home' }), + + // Docs routes: /docs/* and /:lang/docs/* + route(':lang?/docs', 'routes/docs.tsx', { id: 'docs' }), + route(':lang?/docs/*', 'docs/page.tsx', { id: 'docs-page' }), + + // API routes + route('api/search', 'docs/search.ts', { id: 'api-search' }), + + // Catch-all 404 + route('*', 'routes/not-found.tsx', { id: 'not-found' }), +] satisfies RouteConfig; |