prismic-gatsby: Previews broken?

Also posted in the community forum

Previews were working last week and today I noticed that they aren’t any more. Not sure what I’ve changed, and I’ve tried rolling back to a previous version but still get the same results.

After clicking the preview button in Prismic, I get stuck on the /preview route without getting redirected. No console errors. Following the debugging advice in this article, I checked the preview cookie, but the value isn’t a URL like the article says it should be, so I am guessing this is causing/contributing to the issue. I’m not sure what’s causing this though or how to resolve it (if this is even the issue).

image

Versions

  • gatsby-source-prismic: v4.0.1
  • gatsby-plugin-prismic-previews: v4.0.1
  • node: v14.17.1

What is expected?

I should be able to preview documents and get redirected to the correct page

What is actually happening?

I get stuck on the /preview route

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 18 (9 by maintainers)

Most upvoted comments

@benjaminwaterlot Thanks for letting me know your repo is also experiencing the issue. It’s definitely frustrating (it’s also affecting my own projects). I don’t have an estimate on when it will be fixed but the development team is aware of the issue.

FYI this is an issue for a group of Prismic repositories and not specific to Gatsby. The code in your project likely isn’t broken if previews are currently not working.

I will post an update here as I learn more. Until then, please hang tight! 🙏


@kb1995 Missing content should not happen during a preview. The shape of the data should be the same during builds and previews (except for some differences in image handling). Can you confirm you are using the latest version of the plugin and test it again? If the same issue happens, could you open as separate issue with your project details? Thank you!