Skip to content

Conversation

@fgalz
Copy link
Collaborator

@fgalz fgalz commented Jan 9, 2026

The PopupNotification component was causing build failures due to the useDoc() hook being called during static site generation on non-doc pages.

Added isBrowser checks to ensure the component gracefully handles server-side rendering by deferring doc-specific logic to the client-side. The useDoc() hook is now wrapped in a try-catch block and only executed in the browser context, preventing build errors while maintaining full functionality in production.

@fgalz fgalz added the BUILD PERMISSION Translate process label Jan 9, 2026
@fgalz fgalz merged commit 17bf1f8 into master Jan 9, 2026
@fgalz fgalz deleted the hotfix-popupnotifications branch January 9, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BUILD PERMISSION Translate process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants