title: Sentry with SSR
body: <ul>
  <li>We have an application on Reactjs</li>
  <li>We have an SSR that builds the app on webpack, renders this application and returns HTML</li>
  <li>Then on the client-side we hydrate the app</li>
  <li>So the app is run on both server and client sides.</li>
  </ul>
  <p><strong>Problem:</strong></p>
  <p>We'd like to use sentry in react, so that it can be used on both client and server sides, because an error may occur in either place</p>
  <p><strong>What we've tried:</strong></p>
  <p>There are 2 modules @sentry/browser and @sentry/node.
  We tried to make a module that would do:</p>
  <p><code>export default isClientSide ? SentryBrowser : SentryNode</code></p>
  <p>So if it's client, then use SentryBrowser. If server - SentryNode</p>
  <p>But @sentry/node can't be run on webpack since it can't resolve node dependencies like <code>fs</code>, <code>path</code> etc.</p>
  <p><strong>Question:</strong>
  How can we use a single Sentry interface on both client and server sides for React like @sentry/nextjs works on both sides?</p>