Cookies aren't stored in the browser after deployment

I solved it for me!! problem was my API fetch calls were server actions. Server actions don’t pass the Cookie from the backend to the client, and from the client to the server.

yes this is a vercel issue, here is an article for you to read (Only fix is to use custom domain, not vercel one):