Next.js Discord

Discord Forum

Configuring NextAuth BasePath: Addressing API Route Issues

Unanswered
Atlantic horse mackerel posted this in #help-forum
Open in Discord
Atlantic horse mackerelOP
I'm currently using NextAuth in my nextjs project to manage authentication. I decided to change the basePath of my project to /dashboard initially, but there's a snag. Since NextAuth's API typically starts as /api/auth, and my API should start as /dashboard/api/auth, it's not functioning correctly. I'm not sure if there's a way to adjust that as well. Thanks!

1 Reply

Spectacled bear
Hey @Atlantic horse mackerel were you able to resolve this issue?