Skip to content

Commit

Permalink
Website: refresh metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Sep 22, 2023
1 parent cef2d5f commit b77c997
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions website/src/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export async function getStaticProps() {
invocations = await getBrefInvocations();
} catch (e) {
console.error(e);
// Fallback value for local development, preview environments, etc. (no permissions)
invocations = 11700607900;
}
// See https://nextra.site/docs/guide/ssg
Expand All @@ -26,8 +27,8 @@ export async function getStaticProps() {
invocations: invocations,
},
},
// The page will be considered as stale and regenerated every 60 seconds.
revalidate: 60,
// The page will be considered as stale and regenerated every hour
revalidate: 60 * 60,
};
}

Expand Down

0 comments on commit b77c997

Please sign in to comment.