From bb8a759464825d0328dd0908e6727794736cf748 Mon Sep 17 00:00:00 2001 From: Maksim Hodasevich Date: Wed, 25 Nov 2026 16:22:49 +0100 Subject: [PATCH] fix(cms): stop reusing the Turbopack build cache across Vercel deploys Next 16.3 turns on turbopackFileSystemCacheForBuild by default, and Vercel restores .next/cache from the previous deployment. The production build of daf914b reused that cache and shipped the pre-redesign styles.css (old :root and @theme), so every redesign spacing token (pt-sectionTop, gap-gridGap, mb-sectionGap, min-h-header...) compiled to nothing. A redeploy without build cache produced the correct CSS. Scope: apps/cms next.config.mjs --- apps/cms/next.config.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/cms/next.config.mjs b/apps/cms/next.config.mjs index b858f812f..80044c04c 100644 --- a/apps/cms/next.config.mjs +++ b/apps/cms/next.config.mjs @@ -26,6 +26,8 @@ const nextConfig = { transpilePackages: ["@yoast/search-metadata-previews", "@yoast/components"], experimental: { inlineCss: true, + // Vercel restores .next/cache between deploys; a reused Turbopack cache shipped a stale styles.css build. + turbopackFileSystemCacheForBuild: false, }, images: { localPatterns: [{ pathname: "**", search: "" }, { pathname: "/api/media/**" }],