fix: trustHost true for nextauth behind reverse proxy

This commit is contained in:
Romain bogdanovic 2026-03-28 20:52:15 +01:00
parent 913c8a6aaf
commit e1433d3bb7
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import Resend from "next-auth/providers/resend";
import { db } from "@/lib/db"; import { db } from "@/lib/db";
export const { handlers, auth, signIn, signOut } = NextAuth({ export const { handlers, auth, signIn, signOut } = NextAuth({
trustHost: true,
adapter: PrismaAdapter(db), adapter: PrismaAdapter(db),
providers: [ providers: [
Resend({ Resend({