blob: d86c91becb8c217403eca76adf2f5e01cc971ff2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { redirect } from "next/navigation";
import LandingPage from "@/components/landing/LandingPage";
import { getServerAuthSession } from "@/server/auth";
export default async function Home() {
// TODO: Home currently just redirects between pages until we build a proper landing page
const session = await getServerAuthSession();
if (session) {
redirect("/dashboard/bookmarks");
}
return <LandingPage />;
}
|