fix: return 404 for non existent static pages
This commit is contained in:
parent
f8f738965e
commit
0cc0942ccd
|
@ -17,7 +17,7 @@ const Page: CustomNextPage<PageProps> = ({
|
|||
}) => {
|
||||
if (!data) {
|
||||
if (notFound) {
|
||||
return <Error statusCode={400} />
|
||||
return <Error statusCode={404} />
|
||||
}
|
||||
|
||||
return <Error statusCode={500} />
|
||||
|
|
Loading…
Reference in New Issue