feat(app): add prerender, self-hosted fonts and privacy page
Fonts come from npm, not Google, so no third-party font requests. Pages are prerendered at build time; browser-only code is guarded. nginx serves per-route HTML, a real 404 and gzip.
This commit is contained in:
1 parent
57f861510e
commit
54b93055ba
42 files changed
+544
-88
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import { RenderMode, ServerRoute } from '@angular/ssr';
|
||||
import { routes } from './app.routes';
|
||||
|
||||
const WILDCARD = '**';
|
||||
|
||||
/** Every static route gets its own HTML at build time; the catch-all stays client-rendered (it cannot be prerendered without params). */
|
||||
export const serverRoutes: ServerRoute[] = [
|
||||
...routes
|
||||
.filter(route => route.path !== WILDCARD)
|
||||
.map((route): ServerRoute => ({ path: route.path ?? '', renderMode: RenderMode.Prerender })),
|
||||
{ path: WILDCARD, renderMode: RenderMode.Client },
|
||||
];
|
||||
Reference in new issue
Block a user