0

Am I missing something, or is it impossible to set cookies on the server side, get IP address/location of user, and redirect users from the app directory for non-api routes? I understand it's still in beta, but is it just half baked at this point or am I missing something? These seem like relatively important issues - I can't be the only one dealing with them.

juliomalves
  • 42,130
  • 20
  • 150
  • 146
LUKER
  • 540
  • 1
  • 5
  • 23
  • You can only read [cookies](https://beta.nextjs.org/docs/api-reference/cookies) in server components. Same for [headers](https://beta.nextjs.org/docs/api-reference/headers). – juliomalves Nov 21 '22 at 06:27

0 Answers0