UNPKG

@sentry/nextjs

Version:
17 lines (13 loc) 625 B
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const core = require('@sentry/core'); function isNotFoundNavigationError(subject) { return core.isError(subject) && ["NEXT_NOT_FOUND", "NEXT_HTTP_ERROR_FALLBACK;404"].includes( subject.digest ); } function isRedirectNavigationError(subject) { return core.isError(subject) && typeof subject.digest === "string" && subject.digest.startsWith("NEXT_REDIRECT;"); } exports.isNotFoundNavigationError = isNotFoundNavigationError; exports.isRedirectNavigationError = isRedirectNavigationError; //# sourceMappingURL=nextNavigationErrorUtils.js.map