UNPKG

@sentry/nextjs

Version:
27 lines (23 loc) 1.13 kB
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const react = require('@sentry/react'); const appRouterRoutingInstrumentation = require('./appRouterRoutingInstrumentation.js'); const pagesRouterRoutingInstrumentation = require('./pagesRouterRoutingInstrumentation.js'); function nextRouterInstrumentPageLoad(client) { const isAppRouter = !react.WINDOW.document.getElementById("__NEXT_DATA__"); if (isAppRouter) { appRouterRoutingInstrumentation.appRouterInstrumentPageLoad(client); } else { pagesRouterRoutingInstrumentation.pagesRouterInstrumentPageLoad(client); } } function nextRouterInstrumentNavigation(client) { const isAppRouter = !react.WINDOW.document.getElementById("__NEXT_DATA__"); if (isAppRouter) { appRouterRoutingInstrumentation.appRouterInstrumentNavigation(client); } else { pagesRouterRoutingInstrumentation.pagesRouterInstrumentNavigation(client); } } exports.nextRouterInstrumentNavigation = nextRouterInstrumentNavigation; exports.nextRouterInstrumentPageLoad = nextRouterInstrumentPageLoad; //# sourceMappingURL=nextRoutingInstrumentation.js.map