Initial commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { redirect } from "next/navigation";
|
||||
import { auth } from "@/auth";
|
||||
|
||||
export default async function RootPage() {
|
||||
const session = await auth();
|
||||
if (session?.user) {
|
||||
redirect("/dashboard");
|
||||
} else {
|
||||
redirect("/login");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user