Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blog posts aren't updating #30

Open
dannstarr opened this issue May 15, 2022 · 4 comments
Open

Blog posts aren't updating #30

dannstarr opened this issue May 15, 2022 · 4 comments

Comments

@dannstarr
Copy link

I seem to have everything set up correctly, no error messages etc, and it really is a great Blog app.
One issue that I notice is that once I publish a post in GraphCMS, I don't seem to be able to update it - it just stays as it was on the first publish.

Say I want to go back to the post content and correct a spelling, add to it, or change it in any way, the latest changes never show up on the live site, despite Graph CMS saying that the updates have been saved and published.

The only way these changes show on the live site, is if I make a change to the files in VS Code, and then push the changes to github, and redeploy to Vercel

@akinolapo
Copy link

When creating, publishing, unpublishing, or editing content, simply click on Start Building to trigger a new Vercel build.

8

@manuetov
Copy link

manuetov commented Jun 12, 2022

I seem to have everything set up correctly, no error messages etc, and it really is a great Blog app. One issue that I notice is that once I publish a post in GraphCMS, I don't seem to be able to update it - it just stays as it was on the first publish.

Say I want to go back to the post content and correct a spelling, add to it, or change it in any way, the latest changes never show up on the live site, despite Graph CMS saying that the updates have been saved and published.

The only way these changes show on the live site, is if I make a change to the files in VS Code, and then push the changes to github, and redeploy to Vercel

The same thing happens to me. when I am in developer mode the posts update without problems but in build mode when I make a post it only updates in the carousel () but not in the body . The only way these changes show is if I make push the changes to github, and redeploy to vercel.

@Nefiox
Copy link

Nefiox commented Jun 17, 2022

Try to use revalidate property in the index.jsx.

export async function getStaticProps() {
  const posts = (await getPosts()) || [];
  return {
    props: { posts },
    revalidate: 10
  };
}

@manuetov
Copy link

manuetov commented Jun 17, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants