I’m trying to execute the signOut of NextAuth in my NextJS project in the host, and i’m having the famous message : “This site can’t be reached” while redirecting to the login page.
Note that the redirection works perfectly in the locale on development and production mode
`import { signOut, useSession } from “next-auth/react”;
…
<Button
variant="ghost"
className="flex w-fit justify-start gap-2.5 hover:bg-destructive hover:text-destructive-foreground"
size="sm"
onClick={() => signOut({ callbackUrl: "/login", redirect: true })}
>
<LogOut className="h-4 w-4" />
Quitter
</Button>`