Files
Joshua HannafordandGitHub 5248e15766 fix(turbopack) Adjust tree loader to respect parent module overrides (#81139)
## Fix not-found page inheritance in nested layouts

### What?
This PR fixes an issue where custom not-found pages weren't properly
inherited in nested layouts. Previously, when a page within a route
group threw a `notFound()` error, it wouldn't correctly use the group's
custom not-found page if there was also a custom layout.

### How?
- Added a new `check_and_update_module_references` helper function to
manage module inheritance
- Implemented proper parent-child relationship for special pages
(not-found, forbidden, unauthorized, global-error)
- Added test cases for not-found pages with nested layouts and route
groups
- Ensured custom not-found pages are properly rendered when notFound()
is thrown from pages in nested layouts

Fixes #PACK-4496
2025-07-08 09:16:40 -04:00

9 lines
136 B
JavaScript

export default function RootLayout({ children }) {
return (
<html>
<head />
<body>{children}</body>
</html>
)
}