Rocky_Mountain_Vending/.pnpm-store/v10/files/4d/9cb7ba0b2582c0d370b3ce5b882e49965674072096b6424682d7198e2fd8a7ae63341a8f7b65c99c736ac82d45740ea910c709b0718484fa74eff3b12cf48a
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

56 lines
No EOL
2.5 KiB
Text

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "printDebugThrownValueForProspectiveRender", {
enumerable: true,
get: function() {
return printDebugThrownValueForProspectiveRender;
}
});
const _createerrorhandler = require("./create-error-handler");
const _reactlargeshellerror = require("./react-large-shell-error");
function printDebugThrownValueForProspectiveRender(thrownValue, route) {
// We don't need to print well-known Next.js errors.
if ((0, _createerrorhandler.getDigestForWellKnownError)(thrownValue)) {
return;
}
if ((0, _reactlargeshellerror.isReactLargeShellError)(thrownValue)) {
// TODO: Aggregate
console.error(thrownValue);
return undefined;
}
let message;
if (typeof thrownValue === 'object' && thrownValue !== null && typeof thrownValue.message === 'string') {
message = thrownValue.message;
if (typeof thrownValue.stack === 'string') {
const originalErrorStack = thrownValue.stack;
const stackStart = originalErrorStack.indexOf('\n');
if (stackStart > -1) {
const error = Object.defineProperty(new Error(`Route ${route} errored during the prospective render. These errors are normally ignored and may not prevent the route from prerendering but are logged here because build debugging is enabled.
Original Error: ${message}`), "__NEXT_ERROR_CODE", {
value: "E362",
enumerable: false,
configurable: true
});
error.stack = 'Error: ' + error.message + originalErrorStack.slice(stackStart);
console.error(error);
return;
}
}
} else if (typeof thrownValue === 'string') {
message = thrownValue;
}
if (message) {
console.error(`Route ${route} errored during the prospective render. These errors are normally ignored and may not prevent the route from prerendering but are logged here because build debugging is enabled. No stack was provided.
Original Message: ${message}`);
return;
}
console.error(`Route ${route} errored during the prospective render. These errors are normally ignored and may not prevent the route from prerendering but are logged here because build debugging is enabled. The thrown value is logged just following this message`);
console.error(thrownValue);
return;
}
//# sourceMappingURL=prospective-render-utils.js.map