title: integrating Sentry in Next.js project
body: <p>I am using Next.js with AMP.
  That means my code runs only on the server. no client code.</p>
  
  <p>I'm trying to integrate <code>@sentry/node</code>
  However, while i'm adding this line alone to <code>index.js</code> in <code>/pages</code>
  <code>const Sentry = require('@sentry/node');</code></p>
  
  <p>the build fails with the following error:</p>
  
  <pre><code>[ wait ]  compiling ...
  [ error ] ./node_modules/@sentry/node/esm/integrations/console.js
  Module not found: Can't resolve 'console' in '/Users/lirancohen/Projects/amp-app/node_modules/@sentry/node/esm/integrations'
  </code></pre>
  
  <p>I would appreciate any help to understand this issue.
  Using next 9.0.1 and sentry 5.0.5</p>