mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
## 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
13 lines
207 B
React
13 lines
207 B
React
import Link from 'next/link'
|
|
|
|
export default function Page() {
|
|
return (
|
|
<main>
|
|
<h1>Home Page</h1>
|
|
<Link href="/solutions/404" id="to-404">
|
|
Go to 404
|
|
</Link>
|
|
</main>
|
|
)
|
|
}
|