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 0d1c8eb commit 6e3cd17Copy full SHA for 6e3cd17
1 file changed
src/pages/committee.js
@@ -150,14 +150,23 @@ function toGoogleImageUrl(thumbnailUrl) {
150
}
151
152
153
+// export async function getStaticProps() {
154
+// const res = await fetch(`https://wrcrobotics.pythonanywhere.com/committee`);
155
+// const committeeData = await res.json();
156
+
157
+// return {
158
+// props: {
159
+// committeeData,
160
+// },
161
+// };
162
+// }
163
export async function getStaticProps() {
- const res = await fetch(`https://wrcrobotics.pythonanywhere.com/committee`);
164
+ const res = await fetch("https://wrcrobotics.pythonanywhere.com/committee");
165
const committeeData = await res.json();
166
167
return {
- props: {
- committeeData,
- },
168
+ props: { committeeData },
169
+ revalidate: 10, // updates every 10 seconds
170
};
171
172
0 commit comments