feat: add markdown app pages

Merged
KI
5mo ago
+916-16

Summary

  • Add source-authored page.md and page.mdx support to the app router.
  • Add mdx config for custom MDX components, wrapper class names, and automatic raw /route.md source routes.
  • Wire markdown app pages through dev, route type generation, and universal production builds.
  • Add docs and a basic example at /markdown with /markdown.md raw source output.

Validation

  • corepack pnpm --filter @farmjs/core test
  • corepack pnpm --filter @farmjs/core build
  • corepack pnpm --filter farm-example-basic build
  • Dev smoke: curl http://localhost:3000/markdown, curl http://localhost:3000/markdown.md, and curl -I http://localhost:3000/markdown.md
  • git diff --check
  • targeted oxfmt --check

Notes

  • corepack pnpm --filter @farmjs/core type-check still fails on existing Nitro/query-state type issues unrelated to this PR.
  • corepack pnpm --filter farm-example-basic type-check still fails on the existing async JSX issue in src/app/ppr-demo/page.tsx.