Skip to content

Commit

Permalink
πŸ”Š Find the headers in the request #2650 (#2651)
Browse files Browse the repository at this point in the history
  • Loading branch information
padms authored Nov 6, 2024
1 parent c8674f9 commit 8a3669e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/pages/news/index.global.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export const getServerSideProps: GetServerSideProps = async ({ req, preview = fa
preview,
)

console.log(JSON.stringify(req.headers))
const url = new URL(req.headers.referer || `https://${req.headers.host}${req.url}`).toString()
const serverState = await getServerState(
<NewsRoom
Expand Down

0 comments on commit 8a3669e

Please sign in to comment.