gatsbyjs / wp-gatsby

WordPress plugin for gatsby-source-wordpress
Other
167 stars 41 forks source link

Getting 404 in wordpress preview with newer version. #235

Closed sanky72 closed 2 years ago

sanky72 commented 2 years ago

Hi everyone, I am trying to migrate from gatsby version 3 to 4. The gatsby version I upgraded to is 4.22.1 and gatsby-source-wordpress version is 6.22.1.

I am getting a 404 error when I try to load a wordpress preview after I tried upgrading to wpgatsby latest version 2.3.3 from 1.1.3.

Upon hitting the preview button, I am getting a url such as https://dummy.com/gatsby-source-wordpress/10222022-09-24%2019:20:45/1022. But this url is throwing 404.

I am using a self-hosted instance of preview server, not gatsby cloud. Can this be the reason?

I tried using the new versions of gatsby and gatsby-source-wordpress with the old wpgatsby version(1.1.3) which I used before, and it gave me the GATSBY_PREVIEW_PROCESS_ERROR with statusType of "NO_PREVIEW_PATH_FOUND" in the console.

@TylerBarnes Please do tell if I need to add any other option in the newer version from Gatsby side or here.