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>
16 lines
No EOL
921 B
Text
16 lines
No EOL
921 B
Text
import { isHangingPromiseRejectionError } from '../../server/dynamic-rendering-utils';
|
|
import { isPostpone } from '../../server/lib/router-utils/is-postpone';
|
|
import { isBailoutToCSRError } from '../../shared/lib/lazy-dynamic/bailout-to-csr';
|
|
import { isNextRouterError } from './is-next-router-error';
|
|
import { isDynamicPostpone, isPrerenderInterruptedError } from '../../server/app-render/dynamic-rendering';
|
|
import { isDynamicServerError } from './hooks-server-context';
|
|
export function unstable_rethrow(error) {
|
|
if (isNextRouterError(error) || isBailoutToCSRError(error) || isDynamicServerError(error) || isDynamicPostpone(error) || isPostpone(error) || isHangingPromiseRejectionError(error) || isPrerenderInterruptedError(error)) {
|
|
throw error;
|
|
}
|
|
if (error instanceof Error && 'cause' in error) {
|
|
unstable_rethrow(error.cause);
|
|
}
|
|
}
|
|
|
|
//# sourceMappingURL=unstable-rethrow.server.js.map |