mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
26 lines
589 B
TypeScript
26 lines
589 B
TypeScript
import {redirect, useRouter} from "next/navigation";
|
|
import {useEffect} from "react";
|
|
import {currentUser} from "@/auth/current-user";
|
|
|
|
// export default function NotFound() {
|
|
//
|
|
// const router = useRouter();
|
|
//
|
|
// useEffect(() => {
|
|
// router.push('/');
|
|
// }, [router]);
|
|
//
|
|
// return null; // You can return null or a loading spinner while the redirect happens
|
|
// }
|
|
|
|
export default async function NotFound() {
|
|
|
|
// const user = await currentUser()
|
|
// if (!user) {
|
|
// redirect("/")
|
|
// }else{
|
|
// redirect("/")
|
|
// }
|
|
|
|
redirect("/")
|
|
} |