mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Fixes #54174 We should only add default not-found boundary to loader tree components for root layout. It was accidently added for children routes before
13 lines
301 B
JavaScript
13 lines
301 B
JavaScript
import { notFound } from 'next/navigation'
|
|
|
|
// avoid static generation to fill the dynamic params
|
|
export const dynamic = 'force-dynamic'
|
|
|
|
export default function Page({ params: { id } }) {
|
|
if (id === '404') {
|
|
notFound()
|
|
}
|
|
|
|
return <p id="page">{`dynamic-layout-without-not-found [id]`}</p>
|
|
}
|