Adds the URL rules to the preview server, IIS config and deploy

The preview server and web.config now follow the same URLs as nginx, without
the SPA fallback. Lighthouse exceptions need a recorded reason and the 404 page
is audited through an opt-in route. The deploy checks the build first and the
served result afterwards. The IIS rules stay unverified until a host exists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-01 18:13:21 +01:00
co-authored by Claude Opus 5.5
parent 716692825e
commit e4e7f8c82c
17 changed files with 1919 additions and 220 deletions
+3 -3
View File
@@ -642,8 +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');
// Lighthouse weigert een foutstatus; de preview-server geeft de 404-pagina
// alleen via de opt-in route met status 200. /404.html is een echte 404
expect(lighthouseConfig.notFoundPath).toBe('/__audit/404');
});
});