Empathy [he/him]@beehaw.orgtoJavaScript@programming.dev•Struggling with best practices on NextJS SSR and Cookies
1·
7 months agoAre you using NextJS with the app router, or with the pages router?
Are you using NextJS with the app router, or with the pages router?
For both frameworks, the directory structure controls the URL unless there’s an exception I’m unaware of.
One way to forward the cookie may be to read cookies from the API response headers and write them using the following documentation: https://nextjs.org/docs/app/api-reference/functions/cookies