File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,10 @@ export const octokit = new MyOctokit({
55
55
} ,
56
56
request : {
57
57
fetch : ( url : string , opts : any ) => {
58
- return fetch ( url , { ...opts , next : { tags : [ "contributors" ] } } ) ;
58
+ return fetch ( url , {
59
+ ...opts ,
60
+ next : { tags : [ "contributors" ] , revalidate : 86400 } ,
61
+ } ) ;
59
62
} ,
60
63
} ,
61
64
} ) ;
Original file line number Diff line number Diff line change @@ -73,6 +73,8 @@ export async function generateStaticParams() {
73
73
return contributors . map ( ( c ) => ( { slug : c . login } ) ) ;
74
74
}
75
75
76
+ export const revalidate = 86400 ;
77
+
76
78
export default async function Page ( {
77
79
params : { slug } ,
78
80
} : {
Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ export async function generateMetadata(): Promise<Metadata> {
21
21
} ;
22
22
}
23
23
24
- export const revalidate = 86400 ; // revalidate the contributors ranking every day
25
-
26
24
export default async function Page ( ) {
27
25
const contributors = await getAllContributors ( ) ;
28
26
return (
You can’t perform that action at this time.
0 commit comments