-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate statistics once on build time.
This will need to be recompiled every so often to get accurate statistics.
- Loading branch information
1 parent
86555a1
commit b190048
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }) => { | |
<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. | ||
|