Skip to content

Commit

Permalink
Generate statistics once on build time.
Browse files Browse the repository at this point in the history
This will need to be recompiled every so often to get accurate statistics.
  • Loading branch information
richardhallett committed Jul 31, 2023
1 parent 86555a1 commit b190048
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/statistics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down Expand Up @@ -527,6 +527,10 @@ const StatisticsPage = ({ data }) => {
<p>
This page gives an overview of the information about works,
people and organizations made available via DataCite Commons.

<br />
The is not a live dashboard, but updated on a regular basis.

Please reach out to{' '}
<a href="mailto:[email protected]">DataCite Support</a> for
questions or comments.
Expand Down

0 comments on commit b190048

Please sign in to comment.