POST /api/auth 404 for next js app using convex + convex auth in monorepo
I have an existing Next.js app, but I realized that I might want to build a desktop app or a mobile app for what I'm building in the future. So I'm currently trying to migrate my Next.js app with Convex to be a mono-repo with Next.js and then Convex in the packages section of the Turbo Repo. I set everything up as I did before, in accordance to the Convex auth docs, but for some reason I get a log that says "api/auth/404" and I don't understand why.
This is the stack trace I get in the browser console:
client.tsx:26
POST http://localhost:3000/api/auth 404 (Not Found)
ConvexAuthNextjsClientProvider.useCallback[call] @ client.tsx:26
AuthProvider.useCallback[signIn] @ client.tsx:236
await in AuthProvider.useCallback[signIn]
handleGoogleSignIn @ page.tsx:26
<button>
Button @ button.tsx:51
<Button>
SignInForm @ page.tsx:83
<SignInForm>
SignIn @ page.tsx:252
I've gone through the docs multiple times, I can't really seem to find any issue either with environment variables or the way I have been set up. So I was wondering why this might be the case.
