Replies: 2 comments
-
I think this has something to do with issue 344
|
Beta Was this translation helpful? Give feedback.
-
Hey @YordanLV we apologize for the late reply. Are you still experiencing issues with SSR/SSG? |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am struggling to properly render SSR/SSG a query with couple of custom fields in it.
I am able to render the fields on the page but as I soon try to view source, I get the response dumped as json inside the body instead of a proper dom, which is not ideal.
I have the following code:
`import { gql, useQuery } from '@apollo/client'
import { getApolloClient } from '@wpengine/headless'
import { getNextStaticPaths, getNextStaticProps, useUriInfo } from '@wpengine/headless/next'
import { GetStaticPropsContext } from 'next'
import React from 'react'
import Post from '../lib/components/Post'
import Posts from '../lib/components/Posts'
import WpComponents from '../wp-components'
Thank you
Beta Was this translation helpful? Give feedback.
All reactions