Getting 405 on Vercel
I am trying make betterauth to work on Vercel, but for some reason all calls to /api/auth/* return 405 Method Not Allowed. Works locally, other endpoints work on Vercel. Using Next.js 15 and better auth v1.2.12
Solution:Jump to solution
Oh nevermind, I had incorrectly configured vercel.json file with this line. Deleting the file solved the issue
...
5 Replies
Can you show me the code which is making the calls?
Sure, it's quite minimal.
My auth/[...all] looks like this:
all routes inside /api/auth/* or sign in route
inside /api/auth

Solution
Oh nevermind, I had incorrectly configured vercel.json file with this line. Deleting the file solved the issue