Repository navigation
fix(build): Exclude docs/ from the platform-content function bundle - #21121
Merged
Merged
Conversation
The platform-content API route traced the whole docs/ directory into its Vercel function, which now exceeds Vercel's 250MB uncompressed limit and fails the sentry-docs build. The route only serves prerendered combinations (dynamicParams = false), so it never reads docs/ at runtime. Exclude it, like the [[...path]] route. Co-Authored-By: Paul Jaffre <paul.jaffre@sentry.io>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
sergical
marked this pull request as ready for review
December 4, 2026 19:56
Contributor
|
Rollout plan could not be created · Rollout details
Rollout plan could not be created because the team reached its usage limit. Mention |
1 of 6 tasks
sfanahata
approved these changes
Dec 4, 2026
sfanahata
left a comment
Contributor
There was a problem hiding this comment.
Preview looks good on develop and docs.
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.
DESCRIBE YOUR PR
The
sentry-docsVercel build fails because the function forapp/api/platform-content/[platform]/[runtime]/[framework]/[...includePath]is over Vercel's 250MB uncompressed limit. File tracing pulls the wholedocs/directory, images included, into that function, so it grows with every screenshot added to the docs.The route is
force-staticwithdynamicParams = false, so it only serves combinations prerendered at build time and never readsdocs/at runtime. This adds anoutputFileTracingExcludesentry for the route that leaves outdocs/**/*andpublic/og-images/**/*, the same way the[[...path]]route already does.The Vercel preview build on this PR shows whether the function now fits.
IS YOUR CHANGE URGENT?
PRE-MERGE CHECKLIST
via paul.jaffre.
--
View Session [Sentry]