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());
});