Next.js Discord

Discord Forum

404 on api route only when deployed to Vercel using better-auth

Unanswered
European pilchard posted this in #help-forum
Open in Discord
European pilchardOP
Hi,
I have better-auth setup fine when using dev server, but once deployed to Vercel, I get a 404 error on the route. I am testing using /api/auth/ok, which just return true if the server is running. I get okay on dev, but on Vercel, i get the 404 page. Any ideas why this would happen?

0 Replies