Skip to content

Commit c01405d

Browse files
committed
Custom 404 page
It ain't pretty, but its better than not giving users any option to go back to the main page.
1 parent f9179fc commit c01405d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

app/not-found.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import Link from 'next/link'
2+
3+
export default function NotFound() {
4+
return <div>
5+
<h1>Not found - 404</h1>
6+
<div>
7+
<Link href="/">Go back to Home</Link>
8+
</div>
9+
</div>
10+
}

0 commit comments

Comments
 (0)