next.js/test/e2e/app-dir/app-static/app/force-static/layout.js
layout.js15 lines362 B
import { cookies, headers } from 'next/headers'

export default async function Layout({ children }) {
  const curHeaders = await headers()
  const curCookies = await cookies()

  return (
    <>
      <p id="headers">{JSON.stringify([...curHeaders.keys()])}</p>
      <p id="cookies">{JSON.stringify([...curCookies.getAll()])}</p>
      {children}
    </>
  )
}
Quest for Codev2.0.0
/
SIGN IN