mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
17 lines
356 B
JavaScript
17 lines
356 B
JavaScript
import { notFound } from 'next/navigation'
|
|
|
|
// avoid static generation to fill the dynamic params
|
|
export const dynamic = 'force-dynamic'
|
|
|
|
export default async function Page(props) {
|
|
const params = await props.params
|
|
|
|
const { id } = params
|
|
|
|
if (id === '404') {
|
|
notFound()
|
|
}
|
|
|
|
return <p id="page">{`dynamic-layout-without-not-found [id]`}</p>
|
|
}
|