Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
1 line
1.8 KiB
Plaintext
1 line
1.8 KiB
Plaintext
{"version":3,"file":"nextRoutingInstrumentation.js","sources":["../../../../src/client/routing/nextRoutingInstrumentation.ts"],"sourcesContent":["import type { Client } from '@sentry/core';\nimport { WINDOW } from '@sentry/react';\nimport { appRouterInstrumentNavigation, appRouterInstrumentPageLoad } from './appRouterRoutingInstrumentation';\nimport { pagesRouterInstrumentNavigation, pagesRouterInstrumentPageLoad } from './pagesRouterRoutingInstrumentation';\n\n/**\n * Instruments the Next.js Client Router for page loads.\n */\nexport function nextRouterInstrumentPageLoad(client: Client): void {\n const isAppRouter = !WINDOW.document.getElementById('__NEXT_DATA__');\n if (isAppRouter) {\n appRouterInstrumentPageLoad(client);\n } else {\n pagesRouterInstrumentPageLoad(client);\n }\n}\n\n/**\n * Instruments the Next.js Client Router for navigation.\n */\nexport function nextRouterInstrumentNavigation(client: Client): void {\n const isAppRouter = !WINDOW.document.getElementById('__NEXT_DATA__');\n if (isAppRouter) {\n appRouterInstrumentNavigation(client);\n } else {\n pagesRouterInstrumentNavigation(client);\n }\n}\n"],"names":["WINDOW","appRouterInstrumentPageLoad","pagesRouterInstrumentPageLoad","appRouterInstrumentNavigation","pagesRouterInstrumentNavigation"],"mappings":";;;;;;AAKA;AACA;AACA;AACO,SAAS,4BAA4B,CAAC,MAAM,EAAgB;AACnE,EAAE,MAAM,WAAA,GAAc,CAACA,YAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,eAAe,CAAC;AACtE,EAAE,IAAI,WAAW,EAAE;AACnB,IAAIC,2DAA2B,CAAC,MAAM,CAAC;AACvC,EAAE,OAAO;AACT,IAAIC,+DAA6B,CAAC,MAAM,CAAC;AACzC,EAAE;AACF;;AAEA;AACA;AACA;AACO,SAAS,8BAA8B,CAAC,MAAM,EAAgB;AACrE,EAAE,MAAM,WAAA,GAAc,CAACF,YAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,eAAe,CAAC;AACtE,EAAE,IAAI,WAAW,EAAE;AACnB,IAAIG,6DAA6B,CAAC,MAAM,CAAC;AACzC,EAAE,OAAO;AACT,IAAIC,iEAA+B,CAAC,MAAM,CAAC;AAC3C,EAAE;AACF;;;;;"} |