Deploys Break Open Browser Tabs via ChunkLoadError from Deployment Skew
A developer found that a routine deploy triggered a spike in ChunkLoadError reports unrelated to any code change in the diff. The errors came from browser sessions that had loaded the page before the deploy finished, since their open tabs still referenced content-hashed filenames that the new build replaced. This mismatch between an older client and a newer server is known as deployment skew, and it can affect static chunks, RSC payloads, Server Action IDs, and API request shapes. Suggested mitigations include Next.js's deploymentId option, Vercel Skew Protection, and a one-time client-side reload guarded against loops.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in