feat(project): init
This commit is contained in:
8
app/page.tsx
Normal file
8
app/page.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
import { redirect } from "next/navigation";
|
||||
import { getCachedCurrentUser } from "@/lib/auth";
|
||||
|
||||
export default async function HomePage() {
|
||||
const user = await getCachedCurrentUser();
|
||||
|
||||
redirect(user ? "/studio" : "/login");
|
||||
}
|
||||
Reference in New Issue
Block a user