Open anotherCoward opened 6 months ago
Hi, seems like it's resolved by https://github.com/vercel/next.js/pull/62370, it is applied to the canary but not on the stable versions yet.
Hi @devjiwonchoi, I've tried it with 14.2.0-canary.47 and the behavior is still the same. default
at the same level as the layout
is ignored after build there too.
@anotherCoward Could you please confirm canary 52?
Same behavior on Next.js 14.2.0-canary.54. Still required to verify with canary 52?
default
on the same level as layout
is ignored after build. Only not-found
/notFound()
is displayed/executed.
Link to the code that reproduces this issue
https://codesandbox.io/p/devbox/sleepy-oskar-t6d39q
To Reproduce
npm run dev
npm run build
npm start
Current vs. Expected behavior
By following the file-naming convetion from https://nextjs.org/docs/app/building-your-application/routing#file-conventions and adding a
default.js
to the app directory it works fine when the server is running withnpm run dev
.If I run
npm run build
andnpm start
the default is ignored on every 404 request and it injects this black default 404 error page.I expect it to work in both instances the same as when I run
npm run dev
.Provide environment information
Which area(s) are affected? (Select all that apply)
App Router
Which stage(s) are affected? (Select all that apply)
next build (local), next start (local)
Additional context
Same problem occurs with next: 14.2.0-canary.47