Skip to content

Commit 906f9aa

Browse files
authored
Update committee.js
not static
1 parent f1dc5fd commit 906f9aa

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

src/pages/committee.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,14 @@ function toGoogleImageUrl(thumbnailUrl) {
151151

152152

153153
}
154-
// export async function getStaticProps() {
155-
// const res = await fetch("https://wrcrobotics.pythonanywhere.com/committee");
156-
// const committeeData = await res.json();
154+
export async function getStaticProps() {
155+
const res = await fetch("https://wrcrobotics.pythonanywhere.com/committee");
156+
const committeeData = await res.json();
157157

158-
// return {
159-
// props: { committeeData },
160-
// revalidate: 10, // updates every 10 seconds
161-
// };
162-
// }
158+
return {
159+
props: { committeeData },
160+
revalidate: 10, // updates every 10 seconds
161+
};
163162

164163
const styles = {
165164
banner: {

0 commit comments

Comments
 (0)