Files
Kane WangandGitHub 955b918ee5 feat(create-app): add OpenGraph Image to template (#3023)
* 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
2026-02-22 16:49:24 +08:00

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;