Skip to content

Commit 9b7fd08

Browse files
committed
Add 404 status to 404 page
1 parent 4d70192 commit 9b7fd08

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

apps/web/pages/404.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Link from "next/link";
22
import { ROUTES } from "../data/routes.data";
33

4-
export default function FourOhFour() {
4+
function FourOhFour() {
55
return (
66
<div className="bg-white min-h-full px-4 py-16 sm:px-6 sm:py-24 md:grid md:place-items-center lg:px-8">
77
<div className="max-w-max mx-auto">
@@ -39,3 +39,9 @@ export default function FourOhFour() {
3939
</div>
4040
);
4141
}
42+
43+
FourOhFour.getInitialProps = () => {
44+
return { statusCode: 404 };
45+
};
46+
47+
export default FourOhFour;

0 commit comments

Comments
 (0)