diff --git a/pages/500.tsx b/pages/_error.tsx similarity index 85% rename from pages/500.tsx rename to pages/_error.tsx index 4d849ef..b14eb1f 100644 --- a/pages/500.tsx +++ b/pages/_error.tsx @@ -1,8 +1,9 @@ -import type { NextPage } from "next"; +import { NextPage, NextPageContext } from "next"; import Link from "next/link"; import styles from "../styles/Errorpage.module.css"; -const svg = ` +const Error: NextPage<{ statusCode?: number }> = ({ statusCode }) => { + const svg = ` `; -const Custom404: NextPage = () => { return