BetterAuth with custom Nextjs basePath
Hi everyone!
I'm working on a project that's hosted on a subdomain of a website, so I had to set a custom
Now I'm having trouble getting BetterAuth to work properly with this setup. I adjusted the
However, in the console, I get the following error:
I’ve already updated the
And in the console, it only showed
Now I’m passing the full path to the client, using:
This looks correct in the network tab and seems to be received correctly, but I’m still getting the same
Any ideas on what I might be missing? Thanks in advance!
I'm working on a project that's hosted on a subdomain of a website, so I had to set a custom
basePath in my Next.js configuration.Now I'm having trouble getting BetterAuth to work properly with this setup. I adjusted the
basePath for the authClient, and the best result I got was a POST request being sent to:However, in the console, I get the following error:
I’ve already updated the
BETTER_AUTH_URL to http://localhost:3000/custom_path, but then the POST request was sent to:And in the console, it only showed
sign-up/email.Now I’m passing the full path to the client, using:
This looks correct in the network tab and seems to be received correctly, but I’m still getting the same
NOT_FOUND error.Any ideas on what I might be missing? Thanks in advance!