Files
Joshua HannafordandGitHub c6cefce4cb fix(Turbopack): Fix duplicated layout rendering in edge cases (#81948)
## Fix module reference handling in app_structure.rs creating duplicated layouts

### What?
Fixed a bug in the `check_and_update_module_references` function by
making the code always overrides the `not-found`, `unauthorized`, etc
files at the top level group route layer.

### Why?
The previous implementation had a bug that when a directory was setup
like the added test case where the layouts from a lower directory would
render when only the layouts at the level of the not-found page should
have rendered.

### How?
- Added the ability to force overriding of the `module` when running
`check_and_update_module_references`
- Split the logic between global and layer-specific modules

Fixes #PACK-5081
2025-07-31 17:04:35 +00:00

13 lines
245 B
React

import { NotFoundTemp } from '../components/NotFoundTemp'
import DefaultLayout from './(default)/layout'
export default function NotFound() {
return (
<>
<DefaultLayout>
<NotFoundTemp />
</DefaultLayout>
</>
)
}