You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportconst{ query }=registerApolloClient(()=>{returnnewApolloClient({cache: newInMemoryCache(),link: newHttpLink({uri: "https://api.github.com/graphql",// you can disable result caching here if you want to// (this does not work if you are rendering your page with `export const dynamic = "force-static"`)fetchOptions: {cache: "no-store"},// --enabledheaders: {authorization: `Bearer ${process.env.GITHUB_TOKEN}`,},}),});});
The text was updated successfully, but these errors were encountered:
Hi Mark,
could you please add a little bit more explanation?
Generally, if you force your page to be generated statically and then make a dynamic request like this, Next.js will error, as these two modes cannot exist at the same time.
I assume that's what's happening here - but with more context I can't help you.
The text was updated successfully, but these errors were encountered: