Wires the script step and preview server into the build

The build now moves inline scripts and fails on a violation. Lighthouse audits
/404.html, because it refuses a page with a real 404 status.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-31 18:25:41 +01:00
co-authored by Claude Opus 5.5
parent 0b964b5466
commit fe1ec5db3d
8 changed files with 36 additions and 14 deletions
+3
View File
@@ -642,5 +642,8 @@ describe('pagina-register', () => {
.map(([path]) => path);
expect(lighthouseConfig.indexedPaths).toEqual(indexed);
expect(lighthouseConfig.noindexPaths).toEqual(noindex);
// Lighthouse weigert een 404-pagina; de preview-server geeft het
// bestand 404.html als bestandsverzoek met status 200 (BR-SRV-04)
expect(lighthouseConfig.notFoundPath).toBe('/404.html');
});
});