mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
x-ref: [slack thread](https://vercel.slack.com/archives/C04MEB9L9RQ/p1677279320253929?thread_ts=1677255545.574209&cid=C04MEB9L9RQ) ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)
12 lines
235 B
JavaScript
12 lines
235 B
JavaScript
import { headers } from 'next/headers'
|
|
|
|
export default function SSRPage() {
|
|
const headersObj = Object.fromEntries(headers())
|
|
return (
|
|
<>
|
|
<p>app-dir</p>
|
|
<p id="headers">{JSON.stringify(headersObj)}</p>
|
|
</>
|
|
)
|
|
}
|