Skip to content

Commit 34baa14

Browse files
committed
trustHost only during tests
1 parent 2c94bfa commit 34baa14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const whitelist = process.env["WHITELIST"]?.split(",");
55
export const isTest = Boolean(process.env["CI"]);
66

77
export const { handlers, signIn, signOut, auth } = NextAuth({
8-
trustHost: true,
8+
trustHost: isTest,
99
providers: !isTest
1010
? [GitHub]
1111
: [

0 commit comments

Comments
 (0)