mirror of
https://github.com/vas3k/TaxHacker.git
synced 2026-01-05 21:20:53 -06:00
19 lines
450 B
TypeScript
19 lines
450 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")
|
|
}
|
|
|
|
export const dynamic = "force-dynamic"
|