Next.js Discord

Discord Forum

Pages router -> req.headers(). App router ?

Unanswered
Dovekie posted this in #help-forum
Open in Discord
DovekieOP
Hello everyone. I'm trying to integrate my NextJS app with clerk by following their example here: https://clerk.com/docs/users/sync-data

They use request.headers to get the headers of the request with the pages router.

My app is using the app router and so far I've tried using various fields from headers() but I keep getting an error.

Any ideas ?

0 Replies