Cookies are not being passed from the front end to the back end in production within the monorepo.
hellow guys,
I'm facing an issue on production where cookies aren't being passed from
my Next.js frontend (platform) to my Next.js backend (API) within a Turborepo monorepo setup on Vercel. but working fine locally.
This setup uses a shared auth package with Better-Auth for authentication. The issue doesn't occur locally, and I've already tried several solutions without success.
What's causing this? I've checked the environment variables and CORS settings, and they appear to be correct.
What's causing this? Has anyone faced the same issue or has a solution?
project structure :
apps/
-platform
-api
packages/
-auth ( better-auth)
validation failing here. when i send req from FE to BE.
0 Replies