Really like functions, yet I’m wondering if there is a feature for middleware that we can enable for all functions (or just in a certain directory).
Serverless auth or uniform error handling would be much improved that way.
Alternatives I’m considering on how to add/simulate such a kind of serverless pipeline:
a) ‘import’ all needed “general functions” in each serverless function
b) using something like apollo server (lambda) in a “main serverless function” and make other calls from there, but execution time might be an issue with that approach