import { cookies } from 'next/headers'
import { connection } from 'next/server'
export const unstable_instant = true
export const unstable_prefetch = 'force-runtime'
export default async function Page() {
await cookies()
return (
<main>
<div>
<p>
Dynamic content needs a Suspense boundary, and there is one above this
segment so the static shell is fine. but it's missing a Suspense here,
so this segment would block, and we should error:
</p>
<Dynamic />
</div>
</main>
)
}
async function Dynamic() {
await connection()
return <div id="dynamic-content">Dynamic content from page</div>
}