Skip to content

fix(bug): prevent stack trace leaks in production error boundaries - #996

Merged
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
Nacho1499:bug/Error-boundary
Jul 24, 2026
Merged

fix(bug): prevent stack trace leaks in production error boundaries#996
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
Nacho1499:bug/Error-boundary

Conversation

@Nacho1499

Copy link
Copy Markdown
Contributor

Closes #708

PR Description:
Updated ErrorBoundarySystem.tsx, src/app/error.tsx, and src/app/global-error.tsx to conditionally restrict stack traces and internal debugging information based on the environment (showDetails={process.env.NODE_ENV === 'development'}).
Added optional showDetails prop support to ErrorBoundarySystem for staging/override flexibility.
Added comprehensive unit tests to verify stack traces are hidden by default in production renders.

Type of Change:
[x] Bug fix

Checklist:
[x] Code follows project style guidelines
[x] Self-review completed
[x] No console errors
[x] Uses Lucide icons consistently
[x] Responsive design implemented
[x] Starknet best practices followed

@drips-wave

drips-wave Bot commented Jul 24, 2026

Copy link
Copy Markdown

@Nacho1499 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@RUKAYAT-CODER

Copy link
Copy Markdown
Contributor

Thank you for contributing to the project.

@RUKAYAT-CODER
RUKAYAT-CODER merged commit 2fa1f4d into rinafcode:main Jul 24, 2026
6 checks passed
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.

[Bug] Error boundary showDetails is hardcoded to true, exposing stack traces in production

2 participants