in src/startApp.ts [130:146]
function shouldBlockOnEntryPointError(): boolean {
if (isNode20Plus()) {
// Starting with Node 20, this will always be blocking
// https://github.com/Azure/azure-functions-nodejs-worker/issues/697
return true;
} else {
const key = 'FUNCTIONS_NODE_BLOCK_ON_ENTRY_POINT_ERROR';
if (isDefined(process.env[key])) {
return isEnvironmentVariableSet(process.env[key]);
} else {
// We think this should be a blocking error by default, but v3 can't do that for backwards compatibility reasons
// https://github.com/Azure/azure-functions-nodejs-worker/issues/630
const model = nonNullProp(worker.app, 'programmingModel');
return !(model.name === '@azure/functions' && model.version.startsWith('3.'));
}
}
}