fixed auth problem in the web
This commit is contained in:
@@ -29,6 +29,8 @@ services:
|
|||||||
- AUTH_DISCORD_SECRET
|
- AUTH_DISCORD_SECRET
|
||||||
- BOT_API_KEY
|
- BOT_API_KEY
|
||||||
- APP_URL
|
- APP_URL
|
||||||
|
- AUTH_URL=https://voidsentinel.systems
|
||||||
|
- AUTH_TRUST_HOST=true
|
||||||
- BOT_API_URL=http://void-sentinel:8080
|
- BOT_API_URL=http://void-sentinel:8080
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import Hero from "@/components/Hero";
|
|||||||
import Features from "@/components/Features";
|
import Features from "@/components/Features";
|
||||||
import Footer from "@/components/Footer";
|
import Footer from "@/components/Footer";
|
||||||
import { auth } from "@/auth";
|
import { auth } from "@/auth";
|
||||||
|
export const dynamic = 'force-dynamic';
|
||||||
import { LoginButton } from "@/components/LoginButton";
|
import { LoginButton } from "@/components/LoginButton";
|
||||||
|
|
||||||
export default async function Home() {
|
export default async function Home() {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export function LoginButton({ session }: { session: any }) {
|
|||||||
<form
|
<form
|
||||||
action={async () => {
|
action={async () => {
|
||||||
"use server"
|
"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">
|
<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">
|
||||||
|
|||||||
Reference in New Issue
Block a user