From 4993734997525c757ef27413e2f2821ca983d7f4 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 22 Aug 2026 23:08:08 +0000 Subject: [PATCH] Terminal --- src/routes/README.md | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 src/routes/README.md diff --git a/src/routes/README.md b/src/routes/README.md deleted file mode 100644 index 441a4e8..0000000 --- a/src/routes/README.md +++ /dev/null @@ -1,21 +0,0 @@ -# Routes - -TanStack Start uses **file-based routing**. Every `.tsx` file in this directory -defines a route. Do **not** create `src/pages/`, `src/routes/_app/index.tsx`, or -`app/layout.tsx` — those are Next.js / Remix conventions. The only root layout -is `src/routes/__root.tsx`. - -## Conventions - -| File | URL | -| --- | --- | -| `index.tsx` | `/` | -| `about.tsx` | `/about` | -| `users/index.tsx` | `/users` | -| `users/$id.tsx` | `/users/:id` (dynamic — bare `$`, no curly braces) | -| `posts/{-$category}.tsx` | `/posts/:category?` (optional segment) | -| `files/$.tsx` | `/files/*` (splat — read via `_splat` param, never `*`) | -| `_layout.tsx` | layout route (renders children via ``) | -| `__root.tsx` | app shell — wraps every page; preserve `` | - -`routeTree.gen.ts` is auto-generated. Don't edit it by hand.