All checks were successful
Build and Push Nightly CI Image / build_and_push (push) Successful in 1m47s
Build and Push Docker Image / build_and_push (push) Successful in 3s
14 lines
259 B
TypeScript
14 lines
259 B
TypeScript
import { auth } from "@/auth"
|
|
import { redirect } from "next/navigation"
|
|
|
|
export default async function Page() {
|
|
const session = await auth()
|
|
|
|
if (session) {
|
|
redirect("/account/dashboard")
|
|
} else {
|
|
redirect("/account/login")
|
|
}
|
|
|
|
return null
|
|
} |