New published content not loading to site

Hello!

I have a problem with publish content, i made edits in editor, then i press publish, but the content on the site is not updated, in preview i see all changes.

Thanks!

Hi Amblik,

Welcome to the community!

Please check out our FAQ for common reasons you aren't seeing your content, no.1 being caching:

Thanks/

Thank you! I have checked this reasons. I have opened API Browser and there is updated content. Then i checked Webhooks, we have on (Netlify) logs is good, i tried to trigger it 13214124124124|690x235
Thank you!

1 Like

Hi,

If you are seeing the most recent content in your API browser and the webhook is correct and working, this means the issue is with your deployment.

Most likely this would be to do with a cache in your application. For instance, if you cache the master ref coming from Prismic you won't get the most up to date content.

Thanks.

Good Morning! Thanks a lot for the clarification! As I understand it, it needs to be configured in gatsby-config?
Thank you!

Which Gatsby plugin are you using?

As I understand gatsby-plugin-react-helmet

The plugin you need for working with Prismic and Gatsby is gatsby-source-prismic.

We have a tutorial that will show you how to work with the plugin and build a project here:

Thanks.

I found this in master, so as I understand we are using right plugin
image


And a few more coincidences in index, package.json and package-lock.
Thank you!

This is a different plugin, we recommned gatsby-source-prismic and the one in your project is
gatsby-source-prismic-graphql, which is not maintained anymore.

In Netlify logs can you check if a new build is being triggered from the webhook?

Oh, its failed in Netlify, i checked log, and there one error

5:36:08 PM: [1/4] Resolving packages...
5:36:09 PM: warning gatsby-source-prismic-graphql > prismic-javascript@2.7.1: prismic-javascript has moved to @prismicio/client! No worries, you're safe to stay on prismic-javascript but it will no longer receive updates nor fixes (excluding security ones). Upgrading to @prismicio/client should be seamless for most users, if any doubt check out the changelog: https://github.com/prismicio/prismic-javascript/releases or reach out to us on our community forum: https://community.prismic.io
warning gatsby-source-prismic-graphql > gatsby-image@2.11.0: This package has been deprecated in favor of gatsby-plugin-image. The migration guide can be found here: https://www.gatsbyjs.com/docs/reference/release-notes/image-migration-guide/.
5:36:11 PM: warning reactstrap > react-popper > popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
5:36:11 PM: [2/4] Fetching packages...
5:36:36 PM: info fsevents@2.1.2: The platform "linux" is incompatible with this module.
5:36:36 PM: info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
5:36:36 PM: info fsevents@1.2.11: The platform "linux" is incompatible with this module.
5:36:36 PM: info "fsevents@1.2.11" is an optional dependency and failed compatibility check. Excluding it from installation.
5:36:36 PM: info fsevents@2.3.2: The platform "linux" is incompatible with this module.
5:36:36 PM: info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
5:36:36 PM: error value-or-promise@1.0.6: The engine "node" is incompatible with this module. Expected version ">=12". Got "10.24.1"
5:36:36 PM: error Found incompatible module.
5:36:36 PM: info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
5:36:36 PM: Error during Yarn install
5:36:36 PM: Build was terminated: Build script returned non-zero exit code: 1
5:36:36 PM: Creating deploy upload records
5:36:36 PM: Failing build: Failed to build site
5:36:36 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1

OK, it looks like the problem is in your website project and not a Prismic issue.

Thanks so much for helping to find the cause!

1 Like

You're welcome :slight_smile:

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.