blog templates not updating frm Sanity
Unanswered
Ring-billed Gull posted this in #help-forum
Ring-billed GullOP
Hi Im having trouble seeing changes in my blog,if I publish post from sanity its not reflecting on the site. Im teying 3 templates, the visual editing one works fine, but the other sa ity blog templates are not, I can change the title of the page and thats it. Thanks 🤗
2 Replies
It's because you might be using getStaticProps and not the getServerSideProps, static ones fetch time upon build time that is when the site is being deployed and server side ones runs at runtime so when the user opens the site, it fetches data at that time.
As Param said if you're using SSG you have to publish your website again every time you insert new content through Sanity, and there are dedicated plugins that integrate with Vercel that allow you to create a new production deployment directly from the studio.
The one I'm using is [
The one I'm using is [
sanity-plugin-dashboard-widget-vercel](https://www.sanity.io/plugins/vercel-dashboard-widget), but I'm also considering using [sanity-plugin-vercel-deploy](https://www.sanity.io/plugins/vercel-deploy) which was made by Nick Di Matteo (a great guy 🤘ðŸ»)