We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1dc5fd commit 906f9aaCopy full SHA for 906f9aa
1 file changed
src/pages/committee.js
@@ -151,15 +151,14 @@ function toGoogleImageUrl(thumbnailUrl) {
151
152
153
}
154
-// export async function getStaticProps() {
155
-// const res = await fetch("https://wrcrobotics.pythonanywhere.com/committee");
156
-// const committeeData = await res.json();
+export async function getStaticProps() {
+ const res = await fetch("https://wrcrobotics.pythonanywhere.com/committee");
+ const committeeData = await res.json();
157
158
-// return {
159
-// props: { committeeData },
160
-// revalidate: 10, // updates every 10 seconds
161
-// };
162
-// }
+ return {
+ props: { committeeData },
+ revalidate: 10, // updates every 10 seconds
+ };
163
164
const styles = {
165
banner: {
0 commit comments