mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-26 10:55:57 +00:00
* feat(create-app): add OpenGraph Image to template * format, add `ssr.external` * add waku, fix template margin * add next.config.mjs patch * rewrite takumi docs page * fix webp suffix * sync create-app * sync all `getPageImage` * remove waku `rollupOptions` * sync * format * fix meta property * fix typo * create `fumadocs-ui/og/takumi` entry * add util `replace`, `replaceAll` * update fs import * format * only create `og.ts` for React Router * update Waku template to use source.ts
16 lines
456 B
TypeScript
16 lines
456 B
TypeScript
import { index, route, type RouteConfig } from '@react-router/dev/routes';
|
|
|
|
export default [
|
|
index('routes/home.tsx'),
|
|
route('docs/*', 'routes/docs.tsx'),
|
|
route('api/search', 'routes/search.ts'),
|
|
route('og/docs/*', 'routes/og.docs.tsx'),
|
|
|
|
// LLM integration:
|
|
route('llms.txt', 'llms/index.ts'),
|
|
route('llms-full.txt', 'llms/full.ts'),
|
|
route('llms.mdx/docs/*', 'llms/mdx.ts'),
|
|
|
|
route('*', 'routes/not-found.tsx'),
|
|
] satisfies RouteConfig;
|