mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
This PR adds the ability to fail on pre-rendering for a page configured with `dynamic="error"`
14 lines
223 B
JavaScript
14 lines
223 B
JavaScript
import { headers } from 'next/headers'
|
|
|
|
export const dynamic = 'error'
|
|
|
|
export default function Page() {
|
|
headers()
|
|
return (
|
|
<>
|
|
<p id="page">/dynamic-error</p>
|
|
<p id="date">{Date.now()}</p>
|
|
</>
|
|
)
|
|
}
|