+A root handler claims the whole site, so it receives every path that is not a file, and its response is final. A `404.html` in the tree is never used for those paths: visitors see whatever the handler returns. To show a 404 page, return HTML from the handler's fallback for browser requests, or use a `functions/` directory. With a file router, a path that no route claims falls through to static handling: the SPA `fallback` if you set one, otherwise the nearest `404.html`, then the Spacefast page. See [The 404 page](/routing#the-404-page).
0 commit comments