fix: return 404 if a fetch error or no data is returned

This commit is contained in:
iCrawl
2022-08-22 23:29:23 +02:00
parent 92c0c60519
commit 43a78be70b
5 changed files with 12 additions and 6 deletions

View File

@@ -179,7 +179,7 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
} catch {
return {
props: {
error: 'FetchError',
notFound: true,
},
};
}