From 863c73a39f14221e1c6edf41696098e0490a7705 Mon Sep 17 00:00:00 2001 From: Immortal Date: Tue, 5 Mar 2024 20:46:51 +0330 Subject: [PATCH] useRouter --- src/pages/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index a22f7a9..ca392e9 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -52,12 +52,12 @@ const Home: NextPage = () => { setLoaded(true); }, []); - const router = useRouter(); + /*const router = useRouter(); useEffect(() => { if (window.location.protocol === 'https:') { window.location.href = `http://${window.location.host}${router.asPath}`; } - }, []); + }, []);*/ if (!loaded) return;