fix(changelog): Include DocsChangelog component in serverless bundle#16268
fix(changelog): Include DocsChangelog component in serverless bundle#16268sentry[bot] wants to merge 1 commit intomasterfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Hi! I triggered this pr, I'm testing an (unreleased) feature we're building. |
|
Closing this PR - incorrect approach This PR attempted to fix the issue by using dynamic imports for API page components. However, this doesn't address the root cause and would lead to whack-a-mole fixes for every page that uses bundleMDX. The Real Problem: My suggestion: remove the exclusion of |
DESCRIBE YOUR PR
This PR resolves the "Module Not Found" error occurring on the
/changelog.rscroute.Problem:
The
GET /changelog.rscrequest was failing with a 500 "Module Not Found" error. The root cause was identified as theDocsChangelogReact component not being included in the serverless bundle for the[[...path]]route.While
docs/changelog.mdxwas correctly included inoutputFileTracingIncludes, its imported componentsrc/components/changelog/docsChangelog.tsxwas not, leading to a runtime module resolution failure when the serverless function attempted to render the page.Solution:
Added
src/components/changelog/docsChangelog.tsxto theoutputFileTracingIncludesarray for the\[\[\.\.\.path\]\]route innext.config.ts. This ensures the necessary component is bundled with the serverless function, allowing the changelog page to render correctly.IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs to go live.
SLA
Thanks in advance for your help!
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes:
LEGAL BOILERPLATE
Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.
EXTRA RESOURCES