Update index.tsx

This commit is contained in:
Daniel
2024-06-09 22:02:14 -04:00
committed by GitHub
parent eadc98fbbe
commit e45384c855
+8 -1
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");
}, []);
}