Update index.tsx

This commit is contained in:
Daniel 2024-06-09 22:02:14 -04:00 committed by GitHub
parent eadc98fbbe
commit e45384c855
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,3 +1,10 @@
import { useRouter } from "next/router";
import { useEffect } from "react";
export default function Index() {
return null;
const router = useRouter();
useEffect(() => {
router.push("/login");
}, []);
}