No badges yet
No accepted solutions yet
No topics yet
Next auth api route throwing Error: Failed to collect page data for /api/auth/[...nextauth] only on production
The problem on my end was coz the <Link> started all prefetching including prefetching the logout button, that it was the same logic since forever but vercel started default...
Next auth api route throwing Error: Failed to collect page data for /api/auth/[...nextauth] only on production
Thanks, please let me know if you hear something from then. Currently im looking at other options to migrate away from vercel.
I can set the cookie when the app is running on localhost but when i deploy it on vercel the cookie is not set #mern stack
There is an other ticket about the exact same problem => community.vercel.com/t/next-auth-api-route-throwing-error-failed-to-collect-page-data-for-api-auth-nextauth-only-on-production/195
I can set the cookie when the app is running on localhost but when i deploy it on vercel the cookie is not set #mern stack
I was debugging this all day, seems like vercel injected some middleware the messes up with the cookies. Its the first time i need their support but no one replies and they...
Next auth api route throwing Error: Failed to collect page data for /api/auth/[...nextauth] only on production
seems like vercel has some middleware that sets cookies, anyway i can disable that? that behaiviour does not happen in localhost
Next auth api route throwing Error: Failed to collect page data for /api/auth/[...nextauth] only on production
On the version that works i get this cookies (Reverted Prop): On the one that breaks I get this (Any previews
Next auth api route throwing Error: Failed to collect page data for /api/auth/[...nextauth] only on production
Its the same ENV i use in localhost and also the same one used on the deploy I reverted too. I added some logs to the server and middleware the supabase login does work and fetches...
Next auth api route throwing Error: Failed to collect page data for /api/auth/[...nextauth] only on production
Auth stoped working for me on friday, even deploying previous commit does not work.
I can set the cookie when the app is running on localhost but when i deploy it on vercel the cookie is not set #mern stack
I am having the same problem since Friday. I have a app that logs in using supabase auth, everything was working fine before and still works fine on localhost. Now on every new...