Files
portabase/app/not-found.tsx
T

14 lines
317 B
TypeScript
Raw Normal View History

2025-01-01 20:00:11 +01:00
"use client"
import {useRouter} from "next/navigation";
import {useEffect} from "react";
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
}