Skip to content

RFC: Router should support custom 404 in dev #313

@shairez

Description

@shairez

Discussed in #306

Originally posted by wmertens September 15, 2025

What is it about?

custom 404.tsx should be easy to develop

What's the motivation for this proposal?

Router only has custom 404 possible after SSG, because they get hardcoded into the build.

Proposed Solution / Feature

Instead, there should supoort for 404 in the route resolution, and running the router should include rendering the 404, except if a flag fallthrough: true is passed to the router middleware.

This will also allow custom 404 support when SSG is turned off, then the component will render like regular pages.

This will also tie in nicely with #295.

Links / References

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Released as Stable (STAGE 5)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions