What SDK should we use for isomorphic JS #5805
-
Is there an existing issue for this?
How do you use Sentry?Sentry Saas (sentry.io) Which package are you using?@sentry/browser SDK Version7.13 Framework VersionNo response Link to Sentry eventNo response Steps to ReproduceI'm curious which SDK we should be using if we need Sentry on both the client & server but we don't use NextJS. Should we still use the Next SDK? I also saw there is an electron SDK that seems to support both browser and node. The existing closed issues seem to just be for Next users so any guidance on this would be appreciated. Expected Result1 Sentry library working on both client and server Actual ResultNot sure which library to install |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey! We recommend initializing two SDK instances, one for the server ( |
Beta Was this translation helpful? Give feedback.
Hey! We recommend initializing two SDK instances, one for the server (
@sentry/node
) and one for the client (@sentry/browser
). This is how the NextJS SDK and the Electron SDK works under the hood.