cookies in server component error
Unanswered
Schneider’s Smooth-fronted Caima… posted this in #help-forum
Original message was deleted.
7 Replies
Original message was deleted
remove
export const dynamic = 'error'Original message was deleted
try adding this then
export const dynamic = 'force-dynamic'European sprat
I'd suggest making a minimal reproduction repo
@European sprat I'd suggest making a minimal reproduction repo
The probem is that you cant modify cookies on RSC
You need to hit an API route or use server action
But that mght not fit his use case
Original message was deleted
if you want to mutate cookie on page load i think middleware is the better solution here