dynamic nav static content next-auth
Answered
Abyssinian posted this in #help-forum
AbyssinianOP
Hi, I want to render a sign in / sign out button in the navbar which is on all pages based on
The session from next-auth / authjs
However it makes all my pages build as dynamic
Is there a proper way to approach what I'm trying to do without making all my pages dynamic
The session from next-auth / authjs
However it makes all my pages build as dynamic
Is there a proper way to approach what I'm trying to do without making all my pages dynamic
5 Replies
Original message was deleted
if you want to offer help, kindly do so in public
AbyssinianOP
what happened?
@Abyssinian Hi, I want to render a sign in / sign out button in the navbar which is on all pages based on
The session from next-auth / authjs
However it makes all my pages build as dynamic
Is there a proper way to approach what I'm trying to do without making all my pages dynamic
you could use client side rendering for the button
Answer
or use Partial Prerendering if you are ok with experimental feature
@Ray you could use client side rendering for the button
AbyssinianOP
WOW I dont know why that escaped me I guess I got to relied on everything being server components sometimes deciding when to use client vs server makes it tough