-
I am following with-apollo example to make my web application, however the meta tags seem to be not rendered for the bots, i.e. if I debug my dynamic url say http://abc.com/item/[id]/[name] |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I have figured it out. It is possible with next.js, It was silly mistake on my side. I was not calling API request inside the getInitialProps. |
Beta Was this translation helpful? Give feedback.
-
Just in case somebody is looking at this discussion. The default behaviour of the export default withApollo({ ssr: false })(PageComponent) You can opt into full SSR (meaning apollo queries are fetched on the server) by enabling - export default withApollo({ ssr: false })(PageComponent)
+ export default withApollo({ ssr: true })(PageComponent) Please note that this technique is then using https://github.com/zeit/next.js/blob/canary/examples/with-apollo/pages/index.js |
Beta Was this translation helpful? Give feedback.
I have figured it out. It is possible with next.js, It was silly mistake on my side. I was not calling API request inside the getInitialProps.