chore(routing): default all routes to lazy client-side spa

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S47a8QARNgW1qNjVQ6bX8H
This commit is contained in:
kamask
2026-10-22 20:59:17 +03:00
co-authored by Claude Opus 5.5
parent 1dcf03cfa6
commit 68d75ca119
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -75,6 +75,11 @@ Delivery plan: after the first release the app ships as ONE Docker container (An
- Prefer the `@Service` decorator over `@Injectable({providedIn: 'root'})` for new singleton services (Angular v22+)
- Use the `inject()` function instead of constructor injection
## Routing
- All routes are lazy loaded (`loadComponent` / `loadChildren`), including feature-internal ones
- All routes render as a plain client-side SPA (`RenderMode.Client` in `app.routes.server.ts`). Do NOT use SSR or prerender by default; enable them only for specific routes the user explicitly asks for
## Project Structure
- Organize code by feature, not by file type: `src/app/<feature>/` (e.g. `src/app/clients/`), not global `components/`, `services/`, `pipes/` folders
+1 -1
View File
@@ -3,6 +3,6 @@ import { RenderMode, ServerRoute } from '@angular/ssr';
export const serverRoutes: ServerRoute[] = [
{
path: '**',
renderMode: RenderMode.Prerender,
renderMode: RenderMode.Client,
},
];