fixed auth problem in the web

This commit is contained in:
2026-01-02 23:53:09 +05:30
parent 32c66b7d08
commit 22ab1cbeb7
3 changed files with 4 additions and 1 deletions

View File

@@ -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:

View File

@@ -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() {

View File

@@ -13,7 +13,7 @@ export function LoginButton({ session }: { session: any }) {
<form
action={async () => {
"use server"
await signOut()
await signOut({ redirectTo: "/" })
}}
>
<Button type="submit" size={'lg'} className="hover:cursor-pointer text-white px-6 py-2 bg-red-500/20 hover:bg-red-500/40 border border-red-500 rounded-full font-semibold transition-all hover:scale-105">