From efbec1419ef4920816fb94330c38880b564ca1b1 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Tue, 19 Mar 2024 17:45:33 +0000 Subject: feature: A new landing page --- apps/web/app/page.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'apps/web/app') diff --git a/apps/web/app/page.tsx b/apps/web/app/page.tsx index ca076cbf..d86c91be 100644 --- a/apps/web/app/page.tsx +++ b/apps/web/app/page.tsx @@ -1,12 +1,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("/signin"); + if (session) { + redirect("/dashboard/bookmarks"); } - redirect("/dashboard/bookmarks"); + return ; } -- cgit v1.2.3-70-g09d2