Skip to content

docs: add Sevalla 404 catch-all redirect

Created by: ihsraham

Summary

  • Adds the Sevalla catch-all redirect rule as the final _redirects entry: /* /404.html 404.
  • Updates scripts/check-redirects.mjs so CI validates the catch-all rule, confirms it stays last, and accepts Next's generated /404.html target.
  • Branch is based on current main, so the PR to develop also brings over the existing main-ahead WDK badge commit.

Why

Sevalla serves overridden not-found pages with 200 unless the static redirects file explicitly maps unmatched paths to /404.html with a 404 status. This mirrors the QVAC docs pattern Eugene pointed to.

Validation

  • npm run check:redirects (red first before adding _redirects, then green after adding it)
  • git diff --check
  • npm run check:meta
  • LINK_CHECK_EXTERNAL=false npm run check:links
  • npm run build after npm ci

Note: npm ci reported existing npm audit findings: 11 vulnerabilities (5 low, 5 moderate, 1 high). The build completed successfully afterward with existing docs-seo docType frontmatter warnings.

Merge request reports