Problem
When Contentful content updates, Netlify rebuilds via webhook but uses outdated _data files instead of fresh Contentful data. The deployed site remains stale.
Current Setup
- Jekyll site hosted on Netlify, Contentful as headless CMS
- Netlify build command:
jekyll contentful && jekyll build
Contentful webhook triggers Netlify builds (verified in logs)
✅ Local workflow works:
jekyll contentful → updates _data → push to GitHub → Netlify rebuilds with new content (correct).
❌ Contentful-triggered workflow fails:
Contentful update → Netlify webhook → rebuild runs, but _data stays outdated → deployed site uses old content.
Expected Behavior
Netlify should fetch fresh Contentful data during build (ignoring Git-tracked _data) and deploy with the latest content.
Relevant Configs _config.yml:
contentful:
spaces:
- MySpace:
space: SPACE_TOKEN
access_token: ACCESS_TOKEN
How can I configure Netlify to always fetch live Contentful data during builds, bypassing the Git-tracked _data folder?
_sitethe data lives in_data. Netlify seems to only be looking at the_datacontents in the github repository. It seems like the build commandjekyll contentfulisn't having an effect. In fact, I checked the Netlify build log files andjekyll contentfulis almost instantaneous._datato the github repo then?jekyll contentful --verboseany error message that stands out?