Lets the CI preview server stand in for the contact API

With contactForm.enabled=true the e2e and Lighthouse runs asked a token route
that CI does not have (404, console error, run 666). The preview server gets an
opt-in --contact-stub (token 200 without captcha, submit 202); the e2e server
helper and the Lighthouse start command switch it on. Tests that need another
answer still replace it per page with page.route.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-11 19:39:03 +01:00
co-authored by Claude Sonnet 5.5
parent 7e708cf3c7
commit 7737104a77
5 changed files with 87 additions and 4 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ module.exports = {
ci: {
collect: {
startServerCommand:
'pnpm preview --port 4173 --strictPort --audit-route',
'pnpm preview --port 4173 --strictPort --audit-route --contact-stub',
startServerReadyPattern: 'Local',
url: [...indexedPaths, ...noindexPaths, notFoundPath].map(
(path) => origin + path,