Dynamic server rendering vs client side rendering
Unanswered
Western yellowjacket posted this in #help-forum
Western yellowjacketOP
Hi there 👋
I'm using NextJS 13, and I came across this question when using
My pages are built statically on the server, but using
Is this more performant/good practice than convert components that needs cookies to client-side, and access it via browser?
In short: Dynamic server rendering or client-side rendering?
I'm using NextJS 13, and I came across this question when using
cookies() in server side components.My pages are built statically on the server, but using
cookies() will make that built dynamic on the server per request.Is this more performant/good practice than convert components that needs cookies to client-side, and access it via browser?
In short: Dynamic server rendering or client-side rendering?
3 Replies
what is ur use case of cookie? what info do you store in cookies?
Western yellowjacketOP
All my pages are inside
[lang]/ but my error page is not, because all the pages follow a layout that the error pages does not, that why its in a different folder and it does not have access to languageThats why I need to access the cookie of the language