Skip to content

feat(boilerplate-vite): router integration, docs, and middleware cookbook#604

Open
advl wants to merge 1 commit intomainfrom
feat/router-boilerplate
Open

feat(boilerplate-vite): router integration, docs, and middleware cookbook#604
advl wants to merge 1 commit intomainfrom
feat/router-boilerplate

Conversation

@advl
Copy link
Copy Markdown
Contributor

@advl advl commented Apr 6, 2026

Done

  • Full router demo with SSR, hydration, domain-colocated routes
  • wrapper() + group() composition with publicLayout wrapper
  • withAuth middleware with typed RouteMiddleware return
  • declare module augmentation for generic-free typed routing
  • Single RouterProvider wrapping the entire tree
  • No @ts-nocheck, no as any casts
  • ROUTER_API.md reference with corrected signatures, content.preload, a11y exports
  • README with module augmentation guidance
  • Middleware cookbook with type-safe examples
  • TanStack Router migration guide

Depends on #602

QA

  • bun run --filter @canonical/react-boilerplate-vite test — 10 tests pass
  • npx tsc --noEmit --project apps/react/boilerplate-vite/tsconfig.json — no type errors
  • Verify cd apps/react/boilerplate-vite && bun run dev runs

PR readiness check

  • PR should have one of the following labels: Feature 🎁
  • PR title follows the Conventional Commits format.
  • The code follows the appropriate code standards
  • All packages define the required scripts in package.json

@advl advl force-pushed the feat/router-react branch from 4e195ab to d92c1c3 Compare April 6, 2026 21:49
@advl advl force-pushed the feat/router-boilerplate branch from 50903df to 234b236 Compare April 6, 2026 21:49
@advl advl force-pushed the feat/router-react branch from d92c1c3 to 6b20f31 Compare April 6, 2026 21:51
@advl advl force-pushed the feat/router-boilerplate branch from 234b236 to 69db414 Compare April 6, 2026 21:51
@advl advl changed the base branch from feat/router-react to main April 6, 2026 21:58
@advl advl force-pushed the feat/router-boilerplate branch from 69db414 to ff89ea4 Compare April 6, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant