next.js/test/e2e/app-dir/segment-cache/prefetch-inlining/app/test-runtime-bailout/page.tsx
page.tsx13 lines417 B
import { cookies } from 'next/headers'

export const unstable_instant = {
  samples: [{ cookies: [{ name: 'theme', value: 'default' }] }],
}
export const unstable_prefetch = 'force-runtime'

export default async function RuntimeBailoutPage() {
  const cookieStore = await cookies()
  const theme = cookieStore.get('theme')?.value ?? 'default'
  return <p id="page-runtime-bailout">Runtime page (theme: {theme})</p>
}
Quest for Codev2.0.0
/
SIGN IN