move global 404 page to app router

This commit is contained in:
Nathaniel Tampus
2023-04-07 12:02:17 +08:00
parent 86b5dff3df
commit 44af7ed0ae
2 changed files with 0 additions and 14 deletions

View File

@@ -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;
}