@sentry/nextjs
Version:
Official Sentry SDK for Next.js
8 lines (7 loc) • 377 B
TypeScript
/**
* Returns true when `pathname` is exactly the Sentry tunnel route or a sub-path
* (`tunnelPath` + `/...`). A plain `startsWith(tunnelPath)` is unsafe: e.g. tunnel
* `/api/t` must not match `/api/things`.
*/
export declare function isPathnameUnderSentryTunnelRoute(pathname: string, tunnelPath: string): boolean;
//# sourceMappingURL=tunnelPathnameMatch.d.ts.map