improve loading time for player page
All checks were successful
deploy / deploy (push) Successful in 51s

This commit is contained in:
Lee
2023-10-23 18:51:53 +01:00
parent bab5627c51
commit 6824575306
9 changed files with 298 additions and 432 deletions

View File

@ -25,7 +25,7 @@ export class FetchQueue {
const response = await fetch(url, {
next: {
revalidate: 3600, // Keep the data for 1 hour, then fetch new data
revalidate: 60 * 5, // Keep the data for 5 minutes
},
});
if (response.status === 429) {