Files
klz-cables.com/.pnpm-store/v10/files/77/1c07cc3fb06cb1b4bb2c010e4d112e98744047dd85f3c7751071c6d89657563a5f49af895ba15e4d794d5427f1ce0f3a751569b43bd5331defcb45ee5784ab
Marc Mintel 5397309103
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
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

31 lines
1.0 KiB
Plaintext

import { WINDOW } from '@sentry/react';
import { appRouterInstrumentNavigation, appRouterInstrumentPageLoad } from './appRouterRoutingInstrumentation.js';
import { pagesRouterInstrumentNavigation, pagesRouterInstrumentPageLoad } from './pagesRouterRoutingInstrumentation.js';
/**
* Instruments the Next.js Client Router for page loads.
*/
function nextRouterInstrumentPageLoad(client) {
const isAppRouter = !WINDOW.document.getElementById('__NEXT_DATA__');
if (isAppRouter) {
appRouterInstrumentPageLoad(client);
} else {
pagesRouterInstrumentPageLoad(client);
}
}
/**
* Instruments the Next.js Client Router for navigation.
*/
function nextRouterInstrumentNavigation(client) {
const isAppRouter = !WINDOW.document.getElementById('__NEXT_DATA__');
if (isAppRouter) {
appRouterInstrumentNavigation(client);
} else {
pagesRouterInstrumentNavigation(client);
}
}
export { nextRouterInstrumentNavigation, nextRouterInstrumentPageLoad };
//# sourceMappingURL=nextRoutingInstrumentation.js.map