this post was submitted on 08 Apr 2024
6 points (100.0% liked)
JavaScript
2003 readers
1 users here now
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Are you using NextJS with the app router, or with the pages router?
App router, where the directory structure controls the url.
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