Commit 9320065
fix(web): enable Next.js version skew protection during rolling deploys (#1346)
* fix(web): enable Next.js version skew protection during rolling deploys
Set `deploymentId` from the commit sha already baked in at build time
(NEXT_PUBLIC_BUILD_COMMIT_SHA). Next.js stamps static asset URLs with
?dpl=<sha> and, on a deployment-id mismatch during navigation, does a full
reload instead of fetching chunks from a build that's no longer serving —
fixing the "Failed to load chunk" error users hit while the pod is updating.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* docs: add CHANGELOG entry for version skew protection
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 5bd62b3 commit 9320065
2 files changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
0 commit comments