Fix localhost redirect loops in proxy middleware using nextUrl.clone() and trustHost

This commit is contained in:
AyrisAI
2026-05-14 02:15:00 +03:00
parent f80a6a3e70
commit 114bbbba81
2 changed files with 7 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ import Credentials from "next-auth/providers/credentials";
import { authenticateUser } from "@/lib/users";
export const { handlers, signIn, signOut, auth } = NextAuth({
trustHost: true,
providers: [
Credentials({
credentials: {