Skip to content

Commit

Permalink
Update revalidation time to 900 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin-Kwan committed Jan 11, 2024
1 parent 36eff9c commit f7891f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/projects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,9 @@ export async function getStaticProps() {
props: {
descriptions,
},
revalidate: 300,
revalidate: 900,
// 15 minutes because GitHub API has a rate limit of 60 requests per hour for unauthenticated requests, so we can only fetch descriptions every 15 minutes
// 14 (about 15) * 4 = 56-60 requests per hour
};
}

Expand Down

0 comments on commit f7891f9

Please sign in to comment.