Moves the app to TanStack Start with prerendering
Every page is now built as HTML from sitePages.ts, with a catch-all route for 404.html. Hooks that read the browser during render are safe for prerendering. The script step that keeps the CSP intact follows, so this build still has inline scripts and is not deployable yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,8 +3,9 @@ import { shootNavItems } from './lib/shootNavItems.ts';
|
||||
import type { FileRoutesByTo } from './routeTree.gen.ts';
|
||||
|
||||
// Menu's verwijzen naar routes, en routes zijn code: het CMS kan geen
|
||||
// pagina's toevoegen. Een tikfout in `to` is daardoor een typefout.
|
||||
export type RoutePath = keyof FileRoutesByTo;
|
||||
// pagina's toevoegen. Een tikfout in `to` is daardoor een typefout. De
|
||||
// vangroute voor onbekende URL's is geen pagina: niet in menu's en register.
|
||||
export type RoutePath = Exclude<keyof FileRoutesByTo, '/$'>;
|
||||
|
||||
export interface NavItem {
|
||||
to: RoutePath;
|
||||
|
||||
Reference in New Issue
Block a user