12 lines
283 B
TypeScript
12 lines
283 B
TypeScript
import { redirect } from "next/navigation";
|
|
import { getServerAuthSession } from "@/server/auth";
|
|
|
|
export default async function Home() {
|
|
const session = await getServerAuthSession();
|
|
if (session) {
|
|
redirect("/dashboard/day/today");
|
|
} else {
|
|
redirect("/signin");
|
|
}
|
|
}
|