fix: properly 404 and revalidate

This commit is contained in:
iCrawl
2022-08-23 18:53:38 +02:00
parent 84059b6b25
commit abd3fc8ceb
2 changed files with 4 additions and 8 deletions

View File

@@ -169,14 +169,12 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
memberName && containerKey ? findMemberByKey(model, packageName, containerKey, branchName) ?? null : null,
source: mdxSource,
},
revalidate: 3600,
},
revalidate: 3600,
};
} catch {
return {
props: {
notFound: true,
},
notFound: true,
};
}
};

View File

@@ -53,14 +53,12 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
data: {
versions: data,
},
revalidate: 3600,
},
revalidate: 3600,
};
} catch {
return {
props: {
notFound: true,
},
notFound: true,
};
}
};