Skip to content

Commit 6f09dd6

Browse files
authored
Update committee.js
1 parent d274751 commit 6f09dd6

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

src/pages/committee.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -114,24 +114,24 @@ export async function getStaticProps() {
114114
};
115115
}
116116
}
117-
export async function getServerSideProps() {
118-
try {
119-
const res = await fetch(
120-
"https://wrcrobotics.pythonanywhere.com/committee",
121-
{ cache: "no-store" }
122-
);
123-
124-
const committeeData = await res.json();
125-
126-
return {
127-
props: { committeeData },
128-
};
129-
} catch (err) {
130-
return {
131-
props: { committeeData: {} },
132-
};
133-
}
134-
}
117+
// export async function getServerSideProps() {
118+
// try {
119+
// const res = await fetch(
120+
// "https://wrcrobotics.pythonanywhere.com/committee",
121+
// { cache: "no-store" }
122+
// );
123+
124+
// const committeeData = await res.json();
125+
126+
// return {
127+
// props: { committeeData },
128+
// };
129+
// } catch (err) {
130+
// return {
131+
// props: { committeeData: {} },
132+
// };
133+
// }
134+
// }
135135

136136
// -----------------------------
137137
// Styles (cleaned)

0 commit comments

Comments
 (0)