| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/splitstream-web/node_modules/next/dist/server/app-render/ |
Upload File : |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
Phase: null,
printDebugThrownValueForProspectiveRender: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
Phase: function() {
return Phase;
},
printDebugThrownValueForProspectiveRender: function() {
return printDebugThrownValueForProspectiveRender;
}
});
const _createerrorhandler = require("./create-error-handler");
const _reactlargeshellerror = require("./react-large-shell-error");
var Phase = /*#__PURE__*/ function(Phase) {
Phase["ProspectiveRender"] = "the prospective render";
Phase["SegmentCollection"] = "segment collection";
Phase["InstantValidation"] = "instant validation";
return Phase;
}({});
function printDebugThrownValueForProspectiveRender(thrownValue, route, phase) {
// 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 ${phase}. 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: "E949",
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 ${phase}. 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 ${phase}. 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