File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,10 @@ export async function getStaticProps() {
7171 customStatus,
7272 } ;
7373
74+ console . log ( 'Retrieved initial props of' , initialProps ) ;
75+
7476 return {
7577 props : initialProps ,
76- revalidate : 300 ,
78+ revalidate : 60 ,
7779 } ;
7880}
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export class StorageClient {
4040 const { access_token } = await requestNewSpotifyToken ( ) ;
4141 const newExpiry = Date . now ( ) + 3600 * 1000 ; // spotify tokens expire in an hour
4242
43- console . debug ( `Token expired, new with expiry ${ newExpiry . toString ( ) } ` ) ;
43+ console . log ( `Token expired, new with expiry ${ newExpiry . toString ( ) } ` ) ;
4444 await this . client . set ( StorageKey . ACCESS_TOKEN , access_token ) ;
4545 await this . client . set ( StorageKey . ACCESS_TOKEN_EXPIRY , newExpiry ) ;
4646
You can’t perform that action at this time.
0 commit comments