Files
TaxHacker_s23/app/page.tsx
2025-04-03 13:07:54 +02:00

17 lines
443 B
TypeScript

import LandingPage from "@/app/landing/landing"
import { getSession } from "@/lib/auth"
import { IS_SELF_HOSTED_MODE, SELF_HOSTED_REDIRECT_URL } from "@/lib/constants"
import { redirect } from "next/navigation"
export default async function Home() {
const session = await getSession()
if (!session) {
if (IS_SELF_HOSTED_MODE) {
redirect(SELF_HOSTED_REDIRECT_URL)
}
return <LandingPage />
}
redirect("/dashboard")
}