Rocky_Mountain_Vending/.pnpm-store/v10/files/30/8b5093112d3da09724b3b65d1d1cb51788807e086376ee6ab0e89a82e94e61812355d9755662bc36033ac3062e5080b85135641acdca5d65a2426e7beb248b
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

24 lines
No EOL
989 B
Text

'use client';
import { jsx as _jsx } from "react/jsx-runtime";
import React from 'react';
import GracefulDegradeBoundary from './graceful-degrade-boundary';
import { ErrorBoundary } from '../error-boundary';
import { isBot } from '../../../shared/lib/router/utils/is-bot';
const isBotUserAgent = typeof window !== 'undefined' && isBot(window.navigator.userAgent);
export default function RootErrorBoundary({ children, errorComponent, errorStyles, errorScripts }) {
if (isBotUserAgent) {
// Preserve existing DOM/HTML for bots to avoid replacing content with an error UI
// and to keep the original SSR output intact.
return /*#__PURE__*/ _jsx(GracefulDegradeBoundary, {
children: children
});
}
return /*#__PURE__*/ _jsx(ErrorBoundary, {
errorComponent: errorComponent,
errorStyles: errorStyles,
errorScripts: errorScripts,
children: children
});
}
//# sourceMappingURL=root-error-boundary.js.map