UNPKG

@sentry/nextjs

Version:
17 lines • 735 B
import type { Client } from '@sentry/core'; /** * Instruments the Next.js pages router for pageloads. * Only supported for client side routing. Works for Next >= 10. * * Leverages the SingletonRouter from the `next/router` to * generate pageload/navigation transactions and parameterize * transaction names. */ export declare function pagesRouterInstrumentPageLoad(client: Client): void; /** * Matches a pathname against the Pages Router build manifest, e.g. `/users/1` -> `/users/[id]`. * * Expects a pathname without `basePath`, which is what Next reports internally. */ export declare function getNextRouteFromPathname(pathname: string): string | undefined; //# sourceMappingURL=pagesRouterRoutingInstrumentation.d.ts.map