feat(ssr): server side render some things to speed up page loads
All checks were successful
deploy / deploy (push) Successful in 1m12s
All checks were successful
deploy / deploy (push) Successful in 1m12s
This commit is contained in:
@ -23,7 +23,12 @@ export class FetchQueue {
|
||||
);
|
||||
}
|
||||
|
||||
const response = await fetch(url, options);
|
||||
const response = await fetch(url, {
|
||||
...options,
|
||||
next: {
|
||||
revalidate: 300, // 5 minutes
|
||||
},
|
||||
});
|
||||
if (response.status === 429) {
|
||||
const hasRetryAfterHeader = response.headers.has("retry-after");
|
||||
let retryAfter = hasRetryAfterHeader
|
||||
|
Reference in New Issue
Block a user