From e54ccb0c590286abb4e18ced81ceaff9db821992 Mon Sep 17 00:00:00 2001 From: Daniel Kluge Date: Thu, 20 Oct 2022 17:53:28 +0200 Subject: [PATCH] Title on errorpage --- pages/404.tsx | 7 +++++-- pages/_error.tsx | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/pages/404.tsx b/pages/404.tsx index 2f6f306..3875ee3 100644 --- a/pages/404.tsx +++ b/pages/404.tsx @@ -1,4 +1,5 @@ import type { NextPage } from "next"; +import Head from "next/head"; import Link from "next/link"; import styles from "../styles/Errorpage.module.css"; @@ -64,7 +65,9 @@ const svg = ` `; const Custom404: NextPage = () => { - return
+ return <> + Error 404 - c0ntroller.de +
@@ -73,7 +76,7 @@ const Custom404: NextPage = () => { > Back to the main page <
-
; + ; }; export default Custom404; \ No newline at end of file diff --git a/pages/_error.tsx b/pages/_error.tsx index b14eb1f..2720852 100644 --- a/pages/_error.tsx +++ b/pages/_error.tsx @@ -1,4 +1,5 @@ import { NextPage, NextPageContext } from "next"; +import Head from "next/head"; import Link from "next/link"; import styles from "../styles/Errorpage.module.css"; @@ -64,7 +65,9 @@ const Error: NextPage<{ statusCode?: number }> = ({ statusCode }) => { `; - return
+ return <> + Error {statusCode} - c0ntroller.de +
@@ -74,7 +77,7 @@ const Error: NextPage<{ statusCode?: number }> = ({ statusCode }) => { > Back to the main page <
-
; + ; }; Error.getInitialProps = ({ res, err }: NextPageContext) => {