Contentful and Vercel builds

We are using Contentful CMS with Vercel on a Next.js site. The Contentful to Vercel webhook is set up correctly, new published changes in Contentful successfully trigger builds in Vercel. But the content in production is still the old content, even after new deployments. And the build cache has also been turned off for each deployment. New changes show up in local environments but not in production.

Hi, @ironcove1! Welcome to the Vercel Community :wave:

Given that new content appears locally but not in production, despite successful builds and disabled build cache, the issue likely lies with caching at the CDN level. Here are the most probable solutions:

  1. Purge the Vercel CDN cache: In your Vercel dashboard, go to Project Settings > Domains and use the “Purge Cache” option
  1. Force a full rebuild: Set the NEXT_PUBLIC_BUILD_ID environment variable to a new value for each deployment. This ensures all pages are regenerated, bypassing any ISR caching.
  2. Check deployment aliases: Ensure the latest production deployment is correctly aliased to your domain in the Vercel dashboard.

If these steps don’t resolve the issue, review your deployment logs for any errors. Feel free to share them on here :pray:

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