feat: add markdown app pages
Merged
KI
5mo ago+916+916+012345678901234567890123456789-16-16-01234567890123456789
Summary
- Add source-authored
page.mdandpage.mdxsupport to the app router. - Add
mdxconfig for custom MDX components, wrapper class names, and automatic raw/route.mdsource routes. - Wire markdown app pages through dev, route type generation, and universal production builds.
- Add docs and a basic example at
/markdownwith/markdown.mdraw source output.
Validation
corepack pnpm --filter @farmjs/core testcorepack pnpm --filter @farmjs/core buildcorepack pnpm --filter farm-example-basic build- Dev smoke:
curl http://localhost:3000/markdown,curl http://localhost:3000/markdown.md, andcurl -I http://localhost:3000/markdown.md git diff --check- targeted
oxfmt --check
Notes
corepack pnpm --filter @farmjs/core type-checkstill fails on existing Nitro/query-state type issues unrelated to this PR.corepack pnpm --filter farm-example-basic type-checkstill fails on the existing async JSX issue insrc/app/ppr-demo/page.tsx.