Skip to content

Commit

Permalink
change re-validate to 10 mins
Browse files Browse the repository at this point in the history
  • Loading branch information
jmzwar committed Jul 12, 2023
1 parent 2e5d6f9 commit 405bfe9
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,16 @@ const graphqlUrlPerps =
const apiKey = process?.env?.NEXT_DUNE_API_KEY || '';

const graphqlQuery = `
query {
futuresMarkets {
id
isActive
marketKey
}
dailyStats(orderBy: day, orderDirection: desc, first: 1) {
cumulativeTraders
}
}
query {
futuresMarkets {
id
isActive
marketKey
}
dailyStats(orderBy: day, orderDirection: desc, first: 1) {
cumulativeTraders
}
}
`;

export const getStaticProps: GetStaticProps = async () => {
Expand Down Expand Up @@ -256,7 +256,7 @@ export const getStaticProps: GetStaticProps = async () => {
markets,
uniqueTradingAccounts,
},
revalidate: 600 * 10,
revalidate: 60 * 10,
};
} catch (e) {
console.log(e);
Expand Down

0 comments on commit 405bfe9

Please sign in to comment.