14 lines
281 B
TypeScript
Raw Permalink Normal View History

2024-05-22 19:35:19 -07:00
import { currentUser } from "@clerk/nextjs";
import { redirect } from "next/navigation";
import Landing from "@/components/landing";
2024-04-15 23:25:14 -04:00
export default async function Home() {
2024-05-22 19:35:19 -07:00
const user = await currentUser();
2024-04-15 23:25:14 -04:00
if (user) {
2024-05-22 19:35:19 -07:00
redirect("/dashboard");
2024-04-15 23:25:14 -04:00
}
2024-04-11 05:14:10 -04:00
2024-05-22 19:35:19 -07:00
return <Landing />;
2024-03-19 12:13:18 -04:00
}