chore: return error

This commit is contained in:
iCrawl
2022-08-24 06:09:39 +02:00
parent 1d6b31b78d
commit 13baf75cae
2 changed files with 9 additions and 3 deletions

View File

@@ -177,7 +177,9 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
console.error(error);
return {
notFound: true,
props: {
error: e,
},
revalidate: 3600,
};
}

View File

@@ -45,7 +45,9 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
console.error('No tags');
return {
notFound: true,
props: {
error: 'No tags',
},
revalidate: 3600,
};
}
@@ -64,7 +66,9 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
console.error(error);
return {
notFound: true,
props: {
error: e,
},
revalidate: 3600,
};
}