From b77c9979fc77da01152f1d0382153aa3129536b1 Mon Sep 17 00:00:00 2001 From: Matthieu Napoli Date: Fri, 22 Sep 2023 18:26:10 +0200 Subject: [PATCH] Website: refresh metrics --- website/src/pages/index.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/website/src/pages/index.mdx b/website/src/pages/index.mdx index 188f8e776..87b99a9b1 100644 --- a/website/src/pages/index.mdx +++ b/website/src/pages/index.mdx @@ -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 @@ -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, }; }