Skip to content

Commit

Permalink
add reval on both returns
Browse files Browse the repository at this point in the history
  • Loading branch information
DarrenBaldwin07 committed Oct 16, 2023
1 parent c2347e2 commit 26083f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/src/pages/extensions/[ext]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ export async function getStaticProps({ params }: { params: { ext: string } }) {

return {
props: { extension: latestVersion, readme, repoDescription },
revalidate: 300,
revalidate: 10,
}
} catch (error: any) {
console.log(
Expand All @@ -371,6 +371,7 @@ export async function getStaticProps({ params }: { params: { ext: string } }) {
)
return {
props: { extension: null, readme: "", repoDescription: "" },
revalidate: 10,
}
}
}

0 comments on commit 26083f0

Please sign in to comment.