Next.js Discord

Discord Forum

Remove /api/auth prefix on fetch requests under NextAuth path

Unanswered
Asiatic Lion posted this in #help-forum
Open in Discord
Asiatic LionOP
Hello,

I have an issue with my NextAuth usage. I currently have nextauth api under /api/auth path with a fetch request on my backend app ( /api/login )

So final result is GET /api/auth/api/login instead of GET /api/login cause nextauth run fetch under /api/auth folder path

With full url it's working but for devops reasons it's not possible for me to have full url, i want work with path.

0 Replies