From f63a7b76443fc6baf557b3ff108bb42ad2f68ab3 Mon Sep 17 00:00:00 2001 From: Rahul Yadav Date: Fri, 10 Nov 2023 07:06:33 +0400 Subject: [PATCH] Redirect old project url to home --- src/pages/project/index.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/pages/project/index.tsx diff --git a/src/pages/project/index.tsx b/src/pages/project/index.tsx new file mode 100644 index 0000000..16dcdf8 --- /dev/null +++ b/src/pages/project/index.tsx @@ -0,0 +1,12 @@ +import { useRouter } from 'next/router'; +import { useEffect } from 'react'; + +export default function Home() { + const router = useRouter(); + + useEffect(() => { + router.push('/'); + }, []); + + return <>; +}