aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/app/page.tsx
blob: c5d57e8adde955e5566dc3947a95e1112ffc9dd6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import { redirect } from "next/navigation";
import { getServerAuthSession } from "@/server/auth";

export default async function Home() {
  const session = await getServerAuthSession();
  if (session) {
    redirect("/dashboard/bookmarks");
  } else {
    redirect("/signin");
  }
}