From 44af7ed0aecb6bcd40c674db69c868399c321764 Mon Sep 17 00:00:00 2001 From: Nathaniel Tampus Date: Fri, 7 Apr 2023 12:02:17 +0800 Subject: [PATCH] move global 404 page to app router --- client/src/app/{[code] => }/not-found.tsx | 0 client/src/pages/404.tsx | 14 -------------- 2 files changed, 14 deletions(-) rename client/src/app/{[code] => }/not-found.tsx (100%) delete mode 100644 client/src/pages/404.tsx diff --git a/client/src/app/[code]/not-found.tsx b/client/src/app/not-found.tsx similarity index 100% rename from client/src/app/[code]/not-found.tsx rename to client/src/app/not-found.tsx diff --git a/client/src/pages/404.tsx b/client/src/pages/404.tsx deleted file mode 100644 index 4250fff..0000000 --- a/client/src/pages/404.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import { useRouter } from "next/router"; -import { useEffect } from "react"; - -// Temporary. Move to app/ directory when it's supported - -export default function NotFound() { - const router = useRouter(); - - useEffect(() => { - router.replace("/"); - }); - - return null; -}