Next.js · Senior · Question 24 of 75
What is version skew, and how does deploymentId help with it?
- ✓Correct answer: An old-version client and a new-version server; the ID helps detect it
- 2Different Node.js versions in dev and prod; the ID pins one runtime version
- 3Different React versions in dependencies; the ID picks one for the bundle
Explanation
A user with a tab open after a deploy may request chunks or Server Actions that no longer exist. With deploymentId, Next.js adds an identifier to asset and navigation requests and, on mismatch, does a full reload instead of producing cryptic errors.