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
+47
View File
@@ -0,0 +1,47 @@
#!/usr/bin/env bash
# Controle van de build voordat die wordt geüpload (BR-HST-15, FR-PR-17).
# Gebruik: check-artifact.sh <dist-map>
# Faalt als een verplicht bestand ontbreekt, als de servermap erin zit, of als
# er een source map in staat (die zou de broncode openbaar maken).
set -euo pipefail
if [ "$#" -ne 1 ]; then
echo "Gebruik: $0 <dist-map>" >&2
exit 2
fi
dist="$1"
if [ ! -d "$dist" ]; then
echo "Geen map: $dist" >&2
exit 1
fi
failures=0
fail() {
echo "FOUT: $1" >&2
failures=$((failures + 1))
}
for file in index.html 404.html over-mij.html; do
if [ -f "$dist/$file" ]; then
echo "gevonden: $file"
else
fail "$file ontbreekt in $dist"
fi
done
if [ -e "$dist/server" ]; then
fail "$dist/server bestaat: alleen de clientmap hoort online"
fi
maps="$(find "$dist" -type f -name '*.map')"
if [ -n "$maps" ]; then
fail "source maps gevonden:
$maps"
fi
if [ "$failures" -gt 0 ]; then
echo "Build geweigerd ($failures fout(en))" >&2
exit 1
fi
echo "Build in orde: $dist"