minus-squareEmpathy [he/him]@beehaw.orgtoJavaScript@programming.dev•Struggling with best practices on NextJS SSR and Cookieslinkfedilinkarrow-up2·1 year agoFor 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 linkfedilink
minus-squareEmpathy [he/him]@beehaw.orgtoJavaScript@programming.dev•Struggling with best practices on NextJS SSR and Cookieslinkfedilinkarrow-up1·edit-21 year agoAre you using NextJS with the app router, or with the pages router? linkfedilink
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