setting a cookie
I'm trying to store my cartId in a cookie
but idk why nextjs says
"Cookies can only be modified in a Server Action or Route Handler. Read more:"
when that function is a serverAction right?
but idk why nextjs says
"Cookies can only be modified in a Server Action or Route Handler. Read more:"
when that function is a serverAction right?