From b190048fce78b88d29c10ae86c9b1d169348a09a Mon Sep 17 00:00:00 2001 From: Richard Hallett Date: Mon, 31 Jul 2023 10:29:11 +0200 Subject: [PATCH] Generate statistics once on build time. This will need to be recompiled every so often to get accurate statistics. --- src/pages/statistics.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/statistics.tsx b/src/pages/statistics.tsx index 31e38373..3544c5dd 100644 --- a/src/pages/statistics.tsx +++ b/src/pages/statistics.tsx @@ -181,7 +181,7 @@ export const STATS_GQL = gql` } ` -export const getServerSideProps = async () => { +export const getStaticProps = async () => { const { data } = await apolloClient.query({ query: STATS_GQL }) @@ -527,6 +527,10 @@ const StatisticsPage = ({ data }) => {

This page gives an overview of the information about works, people and organizations made available via DataCite Commons. + +
+ The is not a live dashboard, but updated on a regular basis. + Please reach out to{' '} DataCite Support for questions or comments.