File tree Expand file tree Collapse file tree 13 files changed +26
-26
lines changed
Expand file tree Collapse file tree 13 files changed +26
-26
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
102102 if ( ! data || ! artifact ) {
103103 return {
104104 notFound : true ,
105- revalidate : 5 * 60
105+ revalidate : 15 * 60
106106 }
107107 }
108108
@@ -113,7 +113,7 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
113113 artifact,
114114 guides,
115115 } ,
116- revalidate : 60 * 60
116+ revalidate : 60 * 60 * 4
117117 }
118118}
119119
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
8181 if ( ! data ) {
8282 return {
8383 notFound : true ,
84- revalidate : 5 * 60
84+ revalidate : 15 * 60
8585 }
8686 }
8787
@@ -92,6 +92,6 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
9292 . sort ( ( a , b ) => Math . max ( ...b . levels ?? [ 5 ] ) - Math . max ( ...a . levels ?? [ 5 ] ) || Math . min ( ...a . levels ?? [ 4 ] ) - Math . min ( ...b . levels ?? [ 4 ] ) || a . name . localeCompare ( b . name ) )
9393 . map ( w => createSmallArtifact ( w ) )
9494 } ,
95- revalidate : 60 * 60
95+ revalidate : 60 * 60 * 4
9696 }
9797}
Original file line number Diff line number Diff line change @@ -434,7 +434,7 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
434434 if ( ! data || ! char ) {
435435 return {
436436 notFound : true ,
437- revalidate : 5 * 60
437+ revalidate : 15 * 60
438438 }
439439 }
440440
@@ -473,7 +473,7 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
473473 costTemplates,
474474 guides
475475 } ,
476- revalidate : 60 * 60
476+ revalidate : 60 * 60 * 4
477477 }
478478}
479479
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
124124 if ( ! data ) {
125125 return {
126126 notFound : true ,
127- revalidate : 5 * 60
127+ revalidate : 15 * 60
128128 }
129129 }
130130
@@ -143,6 +143,6 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
143143 } )
144144 . map ( c => createSmallChar ( c ) )
145145 } ,
146- revalidate : 60 * 60
146+ revalidate : 60 * 60 * 4
147147 }
148148}
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
149149 if ( ! data || ! enemy ) {
150150 return {
151151 notFound : true ,
152- revalidate : 5 * 60
152+ revalidate : 15 * 60
153153 }
154154 }
155155
@@ -160,7 +160,7 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
160160 enemy,
161161 guides,
162162 } ,
163- revalidate : 60 * 60
163+ revalidate : 60 * 60 * 4
164164 }
165165}
166166
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
9898 if ( ! data ) {
9999 return {
100100 notFound : true ,
101- revalidate : 5 * 60
101+ revalidate : 15 * 60
102102 }
103103 }
104104
@@ -108,6 +108,6 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
108108 . values ( data )
109109 . map ( w => createSmallEnemy ( w ) )
110110 } ,
111- revalidate : 60 * 60
111+ revalidate : 60 * 60 * 4
112112 }
113113}
Original file line number Diff line number Diff line change @@ -51,15 +51,15 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
5151 if ( ! data || ! category ) {
5252 return {
5353 notFound : true ,
54- revalidate : 5 * 60
54+ revalidate : 15 * 60
5555 }
5656 }
5757
5858 return {
5959 props : {
6060 guide : category // TODO optimize
6161 } ,
62- revalidate : 60 * 60
62+ revalidate : 60 * 60 * 4
6363 }
6464}
6565
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
8787 if ( ! data || ! guide || pageNumber === undefined || pageNumber === - 1 ) {
8888 return {
8989 notFound : true ,
90- revalidate : 5 * 60
90+ revalidate : 15 * 60
9191 }
9292 }
9393
@@ -96,7 +96,7 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
9696 guide, // TODO optimize
9797 pageNumber
9898 } ,
99- revalidate : 60 * 60
99+ revalidate : 60 * 60 * 4
100100 }
101101}
102102
Original file line number Diff line number Diff line change @@ -45,14 +45,14 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
4545 if ( ! data ) {
4646 return {
4747 notFound : true ,
48- revalidate : 5 * 60
48+ revalidate : 15 * 60
4949 }
5050 }
5151
5252 return {
5353 props : {
5454 guides : data . map ( g => g . name )
5555 } ,
56- revalidate : 60 * 60
56+ revalidate : 60 * 60 * 4
5757 }
5858}
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
144144 if ( ! data || ! mat ) {
145145 return {
146146 notFound : true ,
147- revalidate : 5 * 60
147+ revalidate : 15 * 60
148148 }
149149 }
150150
@@ -190,7 +190,7 @@ export async function getStaticProps(context: GetStaticPropsContext): Promise<Ge
190190 weaponAscension : weaponAscension . sort ( ( a , b ) => ( a . stars && b . stars && b . stars - a . stars ) || ( a . weapon && b . weapon && a . weapon . localeCompare ( b . weapon ) ) || a . name . localeCompare ( b . name ) )
191191 }
192192 } ,
193- revalidate : 60 * 60
193+ revalidate : 60 * 60 * 4
194194 }
195195}
196196
You can’t perform that action at this time.
0 commit comments