File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments