You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After creating module files, **always update `src/routes.ts`** to register the new module:
113
113
114
-
-**Routes**: Add a `route("/path", "./routes/filename.tsx", { id: "name", render: "ssr" })` call inside the appropriate group or at the top level.
115
-
-**Shells**: Add to the `shells` record: `shellName: "./shells/filename.tsx"`.
116
-
-**Middleware**: Add to the `middleware` record: `mwName: "./middleware/filename.ts"`.
114
+
-**Routes**: Add a `route("/path", () => import("./routes/filename.tsx"), { id: "name", render: "ssr" })` call inside the appropriate group or at the top level.
115
+
-**Shells**: Add to the `shells` record: `shellName: () => import("./shells/filename.tsx")`.
116
+
-**Middleware**: Add to the `middleware` record: `mwName: () => import("./middleware/filename.ts")`.
117
117
-**API routes**: No manifest change needed — auto-discovered from `src/api/` by the Vite plugin.
118
118
119
119
Available render modes: `"ssr"` (default), `"ssg"` (static at build), `"isg"` (incremental static with `revalidate: timeRevalidate(seconds)`), `"spa"` (client-only).
0 commit comments