nextjs - 💡(How to fix) Fix Revert PR #88496 - [prebuilt-skew-protection] feat: adding in automatic deploymentId [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vercel/next.js#88941Fetched 2026-04-08 02:03:38
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
closed ×1commented ×1labeled ×1locked ×1

Code Example

git checkout canary
git pull origin canary  
git revert -m 1 7282ce6759ea2373b2060e0720abe8983e1a87ae
git push origin canary
RAW_BUFFERClick to expand / collapse

Issue

PR #88496 needs to be reverted as it introduced breaking changes:

Problems

  1. Broke NEXT_DEPLOYMENT_ID=123 next build

    • Skew protection is no longer enabled via the environment variable
    • Users now need to also add deploymentId: process.env.NEXT_DEPLOYMENT_ID to config
    • This was previously automatic
  2. v16.2.0-canary.4 deployments are completely broken

  3. Vercel's build container mechanism is broken

    • Setting NEXT_DEPLOYMENT_ID=123 in the build container no longer works automatically
    • This is how 'enable skew protection' on Vercel works

How to revert

git checkout canary
git pull origin canary  
git revert -m 1 7282ce6759ea2373b2060e0720abe8983e1a87ae
git push origin canary

Or use GitHub's 'Revert' button on PR #88496.

References

  • Original PR: #88496
  • Merge commit: 7282ce6759ea2373b2060e0720abe8983e1a87ae

extent analysis

TL;DR

Revert PR #88496 to resolve the breaking changes introduced in the canary branch.

Guidance

  • To fix the issues, revert the changes made in PR #88496 by running the provided Git commands or using GitHub's 'Revert' button.
  • Verify the fix by checking if NEXT_DEPLOYMENT_ID=123 next build works as expected and skew protection is enabled automatically.
  • Test deployments on Vercel to ensure they are no longer broken and do not result in 404 errors on documents.
  • Confirm that setting NEXT_DEPLOYMENT_ID=123 in the build container works automatically to enable skew protection on Vercel.

Example

No code snippet is provided as the issue is related to reverting a specific PR and does not require code changes.

Notes

The provided solution assumes that reverting PR #88496 will resolve all the mentioned issues. However, it is essential to thoroughly test the changes after reverting to ensure no other problems are introduced.

Recommendation

Apply the workaround by reverting PR #88496, as it is the most straightforward way to resolve the breaking changes introduced in the canary branch.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING