If you receive TypeError: boolean is not a function or TypeError: handler is not a function after deploying to Amazon Lambda, try changing
module.exports.optimizer = processNext();
to
module.exports.optimizer = function (event, context) {
processNext();
};
I hope this will save somebody's day.
If you receive
TypeError: boolean is not a functionorTypeError: handler is not a functionafter deploying to Amazon Lambda, try changingto
I hope this will save somebody's day.