From 5912336152af068e04ce6696253f1e2c9acc3fd6 Mon Sep 17 00:00:00 2001 From: Jared Palmer Date: Thu, 22 Jun 2023 15:10:55 -0700 Subject: [PATCH] Fix preview sign-in --- auth.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/auth.ts b/auth.ts index e1b68056c..4660cfb60 100644 --- a/auth.ts +++ b/auth.ts @@ -54,12 +54,11 @@ export const { }, trustHost: true }, - ...(process.env.VERCEL_ENV === 'preview' || - process.env.NODE_ENV === 'development' - ? { + ...(process.env.VERCEL_ENV === 'preview' + ? {} + : { pages: { signIn: '/sign-in' } - } - : {}) + }) })