Preview API doesnt render drafts unless I rebuild

Hi, I am using gridsome and deploying it to netlify/aws, I think I have succesfully integrated Preview API but the problem I am encountering is unless I rebuild the website it wont show the drafted articles. any idea how to fix this? or does this Preview API only works on local development and not on deployed development site?

Hi @juan2

I don’t know Grindsome, but I searched and it seems it generated HTML static files during deployment (see at the bottom of the documentation):
https://gridsome.org/docs/deploy-to-netlify/

The easy solution would be to use our Webhook to regenerate the build each time a content is ‘saved’. See our Webhook documentation here:
https://www.contentful.com/developers/docs/concepts/webhooks/