I am trying to get getStaticProps to return some data, but the function is never called. I looked up the official documentation and the examples and also checked various answers here at SO but I still can't get it to work.
The fact that the console.log inside the getStaticProps never runs leads me to think that there is a configuration error with my code, but I can't find the root cause of the problem.
My apollo client configuration is the following:
The constants file that has the ApolloClient options is the following
My component is the following, in the useEffect the console.log commands logs undefined and I never see the console.log command from inside the gerStaticProps getting called either.
I also have a custom _app component which is the following:
My folder structure is the following:
I think there is a good chance the problem lies in my _app.tsx component and that this page from the official documentation contains the solution, but even after trying it I did not solve my problem.




