mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
16 lines
313 B
TypeScript
16 lines
313 B
TypeScript
import {redirect} from "next/navigation";
|
|
import {currentUser} from "@/auth/current-user";
|
|
|
|
|
|
export default async function Index() {
|
|
const user = await currentUser()
|
|
if (user) {
|
|
redirect("/dashboard")
|
|
}
|
|
redirect("/login")
|
|
//Do not delete
|
|
// return (
|
|
// <Home/>
|
|
// );
|
|
}
|