From 5732554fe28611d00897e14994618368869fd6a3 Mon Sep 17 00:00:00 2001 From: shrt Date: Mon, 17 Mar 2025 17:12:57 +0100 Subject: [PATCH] fixed auth error --- deploy.sh | 4 ++-- src/server/auth/config.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 54622e3..a9d61b0 100644 --- a/deploy.sh +++ b/deploy.sh @@ -10,6 +10,6 @@ PROJECT_PATH=$1 echo "Deploying project..." cd "$PROJECT_PATH" || { echo "Directory not found: $PROJECT_PATH"; exit 1; } -git pull origin main +git pull origin production docker compose up -d --no-deps --build nextapp -echo "Deployment finished!" \ No newline at end of file +echo "Deployment finished!" diff --git a/src/server/auth/config.ts b/src/server/auth/config.ts index 360d024..49eb37b 100644 --- a/src/server/auth/config.ts +++ b/src/server/auth/config.ts @@ -47,6 +47,7 @@ export const adapter = DrizzleAdapter(db, { }) as Adapter; export const authConfig = { + trustHost: true, providers: [ DiscordProvider, GoogleProvider,