-
-
-
- Get started by editing{" "}
-
- src/app/page.tsx -
- . -
- - Save and see your changes instantly. -
diff --git a/src/app/(dashboard)/page.tsx b/src/app/(dashboard)/page.tsx new file mode 100644 index 0000000..84e935f --- /dev/null +++ b/src/app/(dashboard)/page.tsx @@ -0,0 +1,14 @@ +import { redirect } from "next/navigation"; +import { getCurrent } from "@/features/auth/actions"; + +export default async function HomePage() { + const user = await getCurrent(); + + if (!user) redirect("/sign-in"); + + return ( +
- src/app/page.tsx
-
- .
-