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:
@@ -626,7 +626,10 @@ describe('pagina-register', () => {
|
||||
|
||||
it('bevat precies de routes van de route tree', async () => {
|
||||
const { router } = await renderApp('/');
|
||||
const routePaths = Object.keys(router.routesByPath).sort();
|
||||
// De vangroute (404) is geen pagina en staat niet in het register
|
||||
const routePaths = Object.keys(router.routesByPath)
|
||||
.filter((path) => path !== '/$')
|
||||
.sort();
|
||||
expect(Object.keys(sitePages).sort()).toEqual(routePaths);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user