Last active
February 21, 2023 14:37
-
-
Save Kola92/99ecffb16214275d15ff58c39f45434b to your computer and use it in GitHub Desktop.
Not Found file renders when a 404 error is return from the backend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// app/not-found.js | |
import Image from "next/image"; | |
import NotFound from "../public/not-found.png"; | |
export default function NotFound() { | |
return ( | |
<> | |
<Image src={NotFound} alt='Not found error graphic' /> | |
<h2>Not Found</h2> | |
<p>Could not find requested resource</p> | |
</> | |
); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment