mirror of
https://github.com/acid-info/logos-press-engine.git
synced 2025-02-23 14:48:08 +00:00
fix: return 404 for non existent static pages
This commit is contained in:
parent
e6df08f32a
commit
09b00c3791
@ -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…
x
Reference in New Issue
Block a user