From 22ab1cbeb7c25fbf0505f4d68ce73a06dc9b6213 Mon Sep 17 00:00:00 2001 From: Kishor Date: Fri, 2 Jan 2026 23:53:09 +0530 Subject: [PATCH] fixed auth problem in the web --- docker-compose.yml | 2 ++ web/app/page.tsx | 1 + web/components/LoginButton.tsx | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 01db494..948cf6a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -29,6 +29,8 @@ services: - AUTH_DISCORD_SECRET - BOT_API_KEY - APP_URL + - AUTH_URL=https://voidsentinel.systems + - AUTH_TRUST_HOST=true - BOT_API_URL=http://void-sentinel:8080 - NODE_ENV=production depends_on: diff --git a/web/app/page.tsx b/web/app/page.tsx index 8a35770..10aa4da 100644 --- a/web/app/page.tsx +++ b/web/app/page.tsx @@ -3,6 +3,7 @@ import Hero from "@/components/Hero"; import Features from "@/components/Features"; import Footer from "@/components/Footer"; import { auth } from "@/auth"; +export const dynamic = 'force-dynamic'; import { LoginButton } from "@/components/LoginButton"; export default async function Home() { diff --git a/web/components/LoginButton.tsx b/web/components/LoginButton.tsx index f257334..ae2e2a9 100644 --- a/web/components/LoginButton.tsx +++ b/web/components/LoginButton.tsx @@ -13,7 +13,7 @@ export function LoginButton({ session }: { session: any }) {
{ "use server" - await signOut() + await signOut({ redirectTo: "/" }) }} >