Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 392 Bytes

File metadata and controls

14 lines (12 loc) · 392 Bytes
Sentry.init({
  // Note, Replay is NOT instantiated below:
  integrations: [],
});

Then, somewhere in your application, for example in a useEffect hook, you can lazy-load the Replay integration:

import("@sentry/nextjs").then((lazyLoadedSentry) => {
  Sentry.addIntegration(lazyLoadedSentry.replayIntegration());
});