.forge/issues/b83b91fd-f161-4b1f-af8c-a735351379a9/issue.md 1.1 KiB 37 lines Raw

id: b83b91fd-f161-4b1f-af8c-a735351379a9 title: '404: emit branded 404.html and serve it on unknown paths' state: closed labels:


What

dist/ has no 404.html, and serve falls back to a bare stub (src/serve.rs:418) that differs from built pages:

On Cloudflare Pages and nginx, unknown paths show the host's default 404 instead of the site.

Reproduced

ls /tmp/rev/404.html          # missing
curl -s http://127.0.0.1:39320/nope   # stub page

Impact

Breaks the "one shape" requirement and looks broken at the most visible failure state.

Fix

view raw