Repository navigation
feat(vercel): add support for skew protection - #3787
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
commit: |
Member
Not (generated) manifest, but we need a configuration namespace Also can you please reopen on |
2 of 3 tasks
pi0
reviewed
Nov 16, 2025
pi0
reviewed
Nov 16, 2025
danielroe
force-pushed
the
feat/vercel-skew
branch
from
November 16, 2025 13:50
fd9ea71 to
4574a18
Compare
pi0
reviewed
Nov 16, 2025
danielroe
force-pushed
the
feat/vercel-skew
branch
from
November 16, 2025 14:15
f7f74ac to
f37b0f0
Compare
pi0
approved these changes
Nov 16, 2025
1 of 6 tasks
|
Hi @danielroe this is really interesting, is there a way for me to use this right now? |
julianbenegas
pushed a commit
to vercel/vercel
that referenced
this pull request
Aug 17, 2026
The __vdpl cookie was appended to every SSR document response in entry.server, and the CDN never stores responses carrying Set-Cookie, so enabling Skew Protection forced BYPASS on all documents and made Cache-Control: s-maxage unusable for React Router apps. Emit a Build Output route instead (matched on Sec-Fetch-Dest: document, continue: true) so the routing layer stamps the cookie on every outgoing document response - including cache HITs and prerendered files - while the function response stays free of Set-Cookie and cacheable. Same approach as Nitro (nitrojs/nitro#3787). Co-authored-by: Claude Fable 5 <[email protected]>
Crazytieguy
added a commit
to Crazytieguy/alignment-hive
that referenced
this pull request
Sep 2, 2026
Skew Protection is enabled on the Vercel project but was inert: nothing in the deployed app carried the deployment id, so a phone that had loaded the page before a deploy fetched chunks whose hashes no longer existed and hit the error boundary (the home-page 'Something went wrong' seen after several deploys in an hour). Nitro's Vercel preset sets the __vdpl cookie on document responses since nitrojs/nitro#3787 (on by default when the dashboard toggle is on); the pinned 3.0.1-alpha.1 predates it. Verified in a local Vercel-preset build that the output config carries the Set-Cookie route. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 Linked issue
resolves #2311
❓ Type of change
📚 Description
seems like a relatively straightforward change
I'll open a similar one for netlify as well
having looked at both implementations, I'm not sure we need a manifest before merging this, but please do feel free to tell me if I've taken a wrong turn here.📝 Checklist