Skip to content

Conversation

@logaretm
Copy link
Collaborator

@logaretm logaretm commented Jan 5, 2026

With more users adopting cache components and running into our current limitations with it, we have to document it for them with the possible workarounds.

None of these are ideal, but the way cache components interferes with our core SDK behavior is not straightforward to fix and may need fundamental changes to our core SDK.

For now I made sure we document the couple of wide cases that the issue appears in, and possible workarounds (more like compromises).

Copilot AI review requested due to automatic review settings January 5, 2026 11:20
@linear
Copy link

linear bot commented Jan 5, 2026

@vercel
Copy link

vercel bot commented Jan 5, 2026

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

Project Deployment Review Updated (UTC)
sentry-docs Ready Ready Preview, Comment Jan 5, 2026 1:22pm
1 Skipped Deployment
Project Deployment Review Updated (UTC)
develop-docs Ignored Ignored Preview Jan 5, 2026 1:22pm

Copy link
Member

@sergical sergical left a comment

Choose a reason for hiding this comment

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

thanks for taking this on since there was feedback coming in already about it 🙏


<Alert level="warning" title="Cache Components Limitation">

If you're using Next.js [Cache Components](https://nextjs.org/docs/app/getting-started/cache-components), there are known compatibility issues with server-side tracing. See [Cache Components Limitations](#cache-components-limitations) for details and workarounds.
Copy link
Member

Choose a reason for hiding this comment

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

i dont think this page will have that content so the link won't work. maybe create both the alert and the section as platform includes components so we can reuse them if needed, maybe also link to a github ticket tracking the work / conversation around supporting cache components?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch! I already included the issues in the section description, do you think the links should be also in the alert?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

merging now but happy to change it later

Copy link
Member

Choose a reason for hiding this comment

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

i think its fine as is, sorry i missed it in the description

Copilot AI review requested due to automatic review settings January 5, 2026 12:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds documentation for known limitations when using Next.js Cache Components with the Sentry SDK, addressing compatibility issues users are encountering with server-side tracing.

  • Documents cache components limitations and associated errors
  • Provides workarounds for both Turbopack and webpack configurations
  • Adds warning alerts to main Next.js documentation pages

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
platform-includes/nextjs-cache-components-limitations/section/javascript.nextjs.mdx New file containing detailed documentation of cache components limitations with two scenarios (Turbopack with generateMetadata, Webpack with Cache Components) and their workarounds
platform-includes/nextjs-cache-components-limitations/alert/javascript.nextjs.mdx New alert component warning users about cache components compatibility issues with links to detailed documentation
docs/platforms/javascript/guides/nextjs/manual-setup/index.mdx Integrates cache components warning alert and adds "Known Limitations" section with the detailed documentation
docs/platforms/javascript/guides/nextjs/index.mdx Integrates cache components warning alert at the beginning and includes limitations section before "Next Steps"

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@andreiborza andreiborza left a comment

Choose a reason for hiding this comment

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

Thanks for taking care of this!

…vascript.nextjs.mdx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@logaretm logaretm merged commit 1b8502c into master Jan 5, 2026
14 checks passed
@logaretm logaretm deleted the awad/fe-676-document-limitations-around-nextjs-and-cache-components branch January 5, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants