mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
17 lines
357 B
JavaScript
17 lines
357 B
JavaScript
import { cookies } from 'next/headers'
|
|
|
|
export default async function Page(props) {
|
|
const params = await props.params
|
|
if (params.id.includes('static-bailout')) {
|
|
console.log('calling cookies', await cookies())
|
|
}
|
|
|
|
return (
|
|
<>
|
|
<p>/static-to-dynamic-error</p>
|
|
<p>id: {params.id}</p>
|
|
<p id="now">{Date.now()}</p>
|
|
</>
|
|
)
|
|
}
|