mirror of
https://github.com/marcogll/TaxHacker_s23.git
synced 2026-01-13 21:35:19 +00:00
17 lines
410 B
TypeScript
17 lines
410 B
TypeScript
import LandingPage from "@/app/landing/landing"
|
|
import { getSession } from "@/lib/auth"
|
|
import config from "@/lib/config"
|
|
import { redirect } from "next/navigation"
|
|
|
|
export default async function Home() {
|
|
const session = await getSession()
|
|
if (!session) {
|
|
if (config.selfHosted.isEnabled) {
|
|
redirect(config.selfHosted.redirectUrl)
|
|
}
|
|
return <LandingPage />
|
|
}
|
|
|
|
redirect("/dashboard")
|
|
}
|