notFound() doesn't consistently show one single 404 page. It sometimes uses the default Next.js 404 page and sometimes the custom not-found.tsx page.
These pages are also affected by parent layouts. I want to keep CSS in layouts to the bare minimum but am unable to remove them right now without breaking changes.
We're stuck with redirect("/404"), which changes the URL, until we resolve this.
notFound()
doesn't consistently show one single 404 page. It sometimes uses the default Next.js 404 page and sometimes the customnot-found.tsx
page.These pages are also affected by parent layouts. I want to keep CSS in layouts to the bare minimum but am unable to remove them right now without breaking changes.
We're stuck with
redirect("/404")
, which changes the URL, until we resolve this.