This repo is a full-stack React SSR app built with TanStack Router (file-based routing) and Hono.
- Client entry (hydration):
src/entry-client.tsx - Server entry (SSR + APIs):
src/entry-server.tsx - Routes:
src/routes/(auto-generatessrc/routeTree.gen.ts) - Build outputs:
dist/client/(static assets),dist/server/index.js(server)
- Request hits the Hono server
- TanStack Router matches the route and runs loaders
- React renders HTML on the server
- Client bundle hydrates and takes over navigation
- Never edit
src/routeTree.gen.tsdirectly - Keep server-only code out of client bundles
- Client env vars must be
VITE_-prefixed (import.meta.env.VITE_*)
- Full working notes: docs/ai/architecture.md