You have opted-out of Automatic Static Optimization due to getInitialProps
in pages/_app
even when not using getInitialProps
#12383
Unanswered
SoorajChandran
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I build the code I get the following warning.
and all the pages are server-side rendered.
However, my
_app.js
looks like this.From a bit of research, I understood that it could be because of the
next-with-apollo
I'm using.And I have to pass
ssr: false
to undo it. Even with this still builds and gives the same error message.Here is my
apollo-client.js
export default withApollo(clientFn)
What am I doing wrong?
Also if I apply
ssr:false
globally and if it works, how can I make a few page SSR.Beta Was this translation helpful? Give feedback.
All reactions