Files
Jiachi LiuandGitHub e20c8c824c Assign default not-found boundary if custom not-found is not present for root layer only (#54185)
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
2023-08-17 18:27:27 +00:00

13 lines
276 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 [id]`}</p>
}