Replies: 2 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
-
I was using this method to fetch data, and it seemed to be working well. However, I couldn't get it working during build - the call to my graphql backend would return a 500 internal service error. I still have no idea why this is. The graphql backend is on Digitial ocean, not vercel, but the call works perfectly via https/on the client. Just a heads up as you may be heading on the same path. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/vercel/next.js/blob/canary/examples/with-apollo/pages/index.js
In the example above, the queries are made within
getStaticProps
, but the page component is not using them after fetching. I've tried setting it up locally and it works if i do:I am able to access the data returned from queries. But if i follow the example and try accessing apollo's cache i get a bunch of root queries instead of resolved data:
Beta Was this translation helpful? Give feedback.
All reactions