Skip to content

Commit

Permalink
automatically update website
Browse files Browse the repository at this point in the history
  • Loading branch information
kchenturtles committed Dec 25, 2023
1 parent 3c88df7 commit 8994214
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function Page ({episodes}) {

<Link className = {styles.link} href = {episode["external_urls"]["spotify"]}><div className = {styles.episodeTitle}>{episode["name"]}</div></Link>
<div className = {styles.releaseDate}><i>Released: </i>{episode["release_date"]}</div>
<div className = {styles.description}>{episode["description"]}</div>
<div className = {styles.description}>{episode["description"].split(".")[0] + "." + episode["description"].split(".")[1] + "."}</div>
<div className = {styles.audio}> <audio controls src = {episode["audio_preview_url"]} className = {styles.preview}>Listen to An Audio Preview Here:</audio></div>
</li>
</div>
Expand Down Expand Up @@ -81,7 +81,7 @@ export async function getStaticProps() {
console.log(`New access token: ${access_token}`);

let accessToken = access_token;
const res = await fetch('https://api.spotify.com/v1/shows/4MqPuRVONKkOiu2SOAYgAf?si=a90b318f18ff4ace', {
const res = await fetch('https://api.spotify.com/v1/shows/4MqPuRVONKkOiu2SOAYgAf', {

headers: {
Authorization: 'Bearer ' + accessToken
Expand All @@ -96,7 +96,7 @@ export async function getStaticProps() {
console.log(episodes);

return {
props: {episodes},
props: {episodes, revalidate: 60},
};
}
}
Expand Down
2 changes: 1 addition & 1 deletion pages/shows.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ const ldata = await lights.json();
const LightsOut = ldata;

return {
props: {episodes, Remnants, LightsOut},
props: {episodes, Remnants, LightsOut, revalidate: 60},
};
}
}

0 comments on commit 8994214

Please sign in to comment.