Skip to content

feat(build): emit a real 404 page + _redirects to end the soft-404 - #32

Merged
bahadirarda merged 1 commit into
mainfrom
feat/real-404-page
Jul 30, 2026
Merged

feat(build): emit a real 404 page + _redirects to end the soft-404#32
bahadirarda merged 1 commit into
mainfrom
feat/real-404-page

Conversation

@bahadirarda

Copy link
Copy Markdown
Contributor

Every unmatched URL (a mistyped page, a stale or nonexistent /_api/{uid}.json an agent requested) was served the home page with HTTP 200, so a miss was indistinguishable from a hit. This emits a real 404.html at the site root (the name Cloudflare Pages serves for a miss) plus a _redirects whose sole rule /* /404.html 404 applies only to paths matching no static asset and no Function - real pages and the /mcp Function are untouched.

Found by the output-audit workflow (cross-surface dimension). Whether _redirects alone overrides the project's not_found_handling is verified on the live deploy below; if the setting still wins, the assets are in place for the flip.

@bahadirarda
bahadirarda merged commit 8e0957b into main Jul 30, 2026
5 checks passed
@bahadirarda
bahadirarda deleted the feat/real-404-page branch July 30, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant