Next.js Discord

Discord Forum

Link With NextAuth

Unanswered
Brown bear posted this in #help-forum
Open in Discord
Brown bearOP
When using <Link> for some reason prefetch fails with 404 when it tries to prefetch the signout link nextauth provides:

api/auth/signout?_rsc=1wtp7 404 (Not Found)

any ideas? When I navigate to the url directly it works fine. How to fix the prefetch?

1 Reply

you prob wouldnt want to prefetch it, as uhh it may sign you out right? also api routes shouldnt be pre fetched anyway unless it is a redirect because its not an actual page