Skip to content

Conversation

codyde
Copy link
Contributor

@codyde codyde commented Aug 27, 2025

Improves Next.js integration documentation with centralized guidance and comprehensive error handling examples.

Key Documentation Improvements

  • Streamlined installation wizard flow with clearer feature selection
  • Enhanced configuration examples with detailed explanations
  • Improved error handling setup for both App Router and Pages Router
  • Better organized verification steps and troubleshooting

Error Handling Components Added

  • App Router global error boundary examples
  • Pages Router error page templates
  • Nested server component error handling
  • Comprehensive error capture strategies

Platform Includes Added

  • Next.js-specific tracing step 1 (enable)
  • Next.js-specific tracing step 2 (distributed)
  • Error handling templates for different Next.js patterns

Files Modified

  • docs/platforms/javascript/guides/nextjs/index.mdx - Main Next.js guide
  • docs/platforms/javascript/guides/nextjs/manual-setup.mdx - Manual setup guide
  • platform-includes/getting-started-capture-errors/* - Error handling templates
  • platform-includes/performance/tracing-step*/javascript.nextjs.mdx - Next.js tracing steps

🤖 Generated with Claude Code

Improves Next.js integration documentation with centralized guidance and comprehensive error handling:

## Documentation Improvements
- Streamlined installation wizard flow with clearer feature selection
- Enhanced configuration examples with detailed explanations
- Improved error handling setup for both App Router and Pages Router
- Better organized verification steps and troubleshooting

## Error Handling Components Added
- App Router global error boundary examples
- Pages Router error page templates
- Nested server component error handling
- Comprehensive error capture strategies

## Platform Includes Added
- Next.js-specific tracing step 1 (enable)
- Next.js-specific tracing step 2 (distributed)
- Error handling templates for different Next.js patterns

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copy link

vercel bot commented Aug 27, 2025

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

Project Deployment Preview Comments Updated (UTC)
sentry-docs Ready Ready Preview Comment Aug 28, 2025 9:40am
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
develop-docs Ignored Ignored Preview Aug 28, 2025 9:40am

Copy link

codecov bot commented Aug 27, 2025

Bundle Report

Changes will increase total bundle size by 1.8kB (0.01%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-client-array-push 9.9MB -6 bytes (-0.0%) ⬇️
sentry-docs-server-cjs 12.51MB 1.8kB (0.01%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.78MB -0.0%
../instrumentation.js -3 bytes 1.1MB -0.0%
9523.js -3 bytes 1.08MB -0.0%
../app/[[...path]]/page.js.nft.json 604 bytes 773.73kB 0.08%
../app/platform-redirect/page.js.nft.json 604 bytes 773.64kB 0.08%
../app/sitemap.xml/route.js.nft.json 604 bytes 771.12kB 0.08%
view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 882.71kB -0.0%
static/chunks/8321-*.js -3 bytes 425.87kB -0.0%
server/middleware-*.js -5.55kB 1.0kB -84.74%
server/middleware-*.js 5.55kB 6.55kB 555.3% ⚠️
static/0YZUXo6q7W9z1IuMc2Ld4/_buildManifest.js (New) 684 bytes 684 bytes 100.0% 🚀
static/0YZUXo6q7W9z1IuMc2Ld4/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/gHIhZ70PreJGUge6BGMvM/_buildManifest.js (Deleted) -684 bytes 0 bytes -100.0% 🗑️
static/gHIhZ70PreJGUge6BGMvM/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️

@codyde codyde changed the title Next.js: Centralize documentation flow with error handling Next.js: Expand getting started flow to include next steps and configs Aug 27, 2025
@codyde codyde changed the title Next.js: Expand getting started flow to include next steps and configs (DRAFT - In Progress) Next.js: Expand getting started flow to include next steps and configs Aug 27, 2025
codyde and others added 3 commits August 28, 2025 01:47
- Refactor error handling examples for App Router and Pages Router to include Next.js-specific paths.
- Introduce new documentation for custom global error components and error handling in nested React Server Components.
- Remove outdated Hono and NestJS error handling documentation.
- Add new files for capturing errors in Next.js App Router and Pages Router.

This update enhances clarity and organization in the error handling section of the Next.js documentation.
…om/getsentry/sentry-docs into feat/nextjs-centralized-flow-clean

* 'feat/nextjs-centralized-flow-clean' of https://github.com/getsentry/sentry-docs:
  Fix reference to span in processOrderBatch function (#14741)
  chore(java): Add docs on how to use tracePropagationTargets (#14752)
  docs(replay): Bring replay nav item to all apple platforms (#14710)
  User Feedback Basics Page (#14670)
  Update AM3 and legacy billing for logs GA, DO NOT MERGE BEFORE LOGS GA (#14589)
  Add LLMSteering component for hidden documentation instructions (#14744)
  New data retention policy page (#14661)
  Adding error prediction to Prevent AI docs (#14641)
codyde and others added 2 commits August 28, 2025 02:04
These files were committed by mistake and should not be part of this PR.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

1 participant