Skip to content

fix(build): Exclude docs/ from the platform-content function bundle - #21121

Merged
sfanahata merged 1 commit into
masterfrom
fix/platform-content-function-size
Dec 4, 2026
Merged

sfanahata merged 1 commit into
masterfrom
fix/platform-content-function-size

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

DESCRIBE YOUR PR

The sentry-docs Vercel build fails because the function for app/api/platform-content/[platform]/[runtime]/[framework]/[...includePath] is over Vercel's 250MB uncompressed limit. File tracing pulls the whole docs/ directory, images included, into that function, so it grows with every screenshot added to the docs.

The route is force-static with dynamicParams = false, so it only serves combinations prerendered at build time and never reads docs/ at runtime. This adds an outputFileTracingExcludes entry for the route that leaves out docs/**/* and public/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?

  • Urgent deadline (GA date, etc.): 2026-12-04 — production deploys are blocked until this lands
  • Other deadline: YYYY-MM-DD
  • No deadline: Not urgent, can wait up to 1 week+

PRE-MERGE CHECKLIST

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

via paul.jaffre.

--

View Session [Sentry]

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>
@vercel

vercel Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
develop-docs Ready Ready Preview Dec 4, 2026 7:49pm UTC
sentry-docs Ready Ready Preview Dec 4, 2026 7:49pm UTC

Request Review

@github-actions github-actions Bot added the Priority: Urgent Docs review is needed immediately for an urgent deadline label Dec 4, 2026
@sergical
sergical marked this pull request as ready for review December 4, 2026 19:56
@cursor

cursor Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Rollout plan could not be created · Rollout details

Status Service Environment
❌ Planning failed

Rollout plan could not be created because the team reached its usage limit.

Mention @rollout in a comment to try again.

@sfanahata sfanahata left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Preview looks good on develop and docs.

@sfanahata
sfanahata merged commit a539752 into master Dec 4, 2026
32 checks passed
@sfanahata
sfanahata deleted the fix/platform-content-function-size branch December 4, 2026 22:16

This branch was successfully deployed

2 active deployments
Preview – sentry-docs — 9aa6eb7f Deployed Dec 4, 2026 by vercel[bot]
Preview – develop-docs — 9aa6eb7f Deployed Dec 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Urgent Docs review is needed immediately for an urgent deadline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant