fix: regenerate @astrojs/vercel patch for v9.0.4#388
Merged
Conversation
The deps update in #382 bumped @astrojs/vercel from 9.0.2 to 9.0.4, which changed dist/index.js enough that the cspMode patch no longer applied. The .d.ts hunk still matched so TypeScript accepted the config, but the runtime JS was unpatched — every static page got its own CSP route entry in config.json, exceeding Vercel's 5MB body limit. Regenerated the patch against 9.0.4 so the global cspMode collapses all per-route CSP headers into a single catch-all route. Made-with: Cursor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
gregnazario
approved these changes
Mar 2, 2026
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.
Summary
@astrojs/vercelpatch to work with v9.0.4 (previously written against v9.0.2)dist/index.jshunk of the patch to silently fail while the.d.tshunk still applied — socspMode: "global"passed type-checking but was ignored at runtimeconfig.json, exceeding the 5MB deployment body limitDeploy is failing on Vercel https://vercel.com/aptoslabs/aptos-docs/8iC9BK3YT8LJ1x2SYN8qfHcnk6UG
Test plan
Made with Cursor