Rocky_Mountain_Vending/.pnpm-store/v10/files/64/22b6c4dbe2409b0db0ff3fa96b2487c9bacc46ad6231467538a708a79c59d415744038ffe7e98506f4ffdb254f0e43900f690dc1bf7fe738b6a1ec7492d59a
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

23 lines
No EOL
1 KiB
Text

// This module can be shared between both pages router and app router
import { isBailoutToCSRError } from '../../shared/lib/lazy-dynamic/bailout-to-csr';
import isError from '../../lib/is-error';
import { reportGlobalError } from './report-global-error';
const recoverableErrors = new WeakSet();
export function isRecoverableError(error) {
return recoverableErrors.has(error);
}
export const onRecoverableError = (error)=>{
// x-ref: https://github.com/facebook/react/pull/28736
let cause = isError(error) && 'cause' in error ? error.cause : error;
// Skip certain custom errors which are not expected to be reported on client
if (isBailoutToCSRError(cause)) return;
if (process.env.NODE_ENV !== 'production') {
const { decorateDevError } = require('../../next-devtools/userspace/app/errors/stitched-error');
const causeError = decorateDevError(cause);
recoverableErrors.add(causeError);
cause = causeError;
}
reportGlobalError(cause);
};
//# sourceMappingURL=on-recoverable-error.js.map