diff --git a/src/app/page.tsx b/src/app/page.tsx index a932894..9706075 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,6 +1,13 @@ import Image from "next/image"; +import { auth } from "@clerk/nextjs/server"; +import { redirect } from "next/navigation"; -export default function Home() { +export default async function Home() { + const { userId } = await auth(); + + if (userId) { + redirect('/dashboard'); + } return (