Skip to content

Instantly share code, notes, and snippets.

@Kola92
Last active February 21, 2023 14:37
Show Gist options
  • Save Kola92/99ecffb16214275d15ff58c39f45434b to your computer and use it in GitHub Desktop.
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
// 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