Modules
Dashboard
Start with protected routes, provider-aware account controls, and typed overview data.
What is generated
- Protected
/dashboardand/settingsroutes. - A responsive sidebar and account header.
- Provider-specific session display and sign-out behavior.
- A typed dashboard overview with server-side starter data.
- A settings view with accessible form controls and status feedback.
- Middleware matched to Better Auth, Clerk, or NextAuth.
Authentication is required
Dashboard cannot be generated with auth: "none". In the create flow, the option is omitted and an explanation is shown. In the add flow, validation fails before files are written.
Replace the starter data
The overview query lives at:
src/modules/dashboard/server/queries.tsIt returns typed fixture data so the page works before your domain schema exists. Replace the function body with database queries while preserving—or deliberately updating—the exported DashboardOverview contract.
Extend navigation
Add route entries to the generated sidebar and place new route files under src/app/(dashboard). Keep permissions in provider-aware server code or middleware rather than hiding navigation links only in the browser.