News for hackers. Stuff that matters.
Re:From Express.js to AWS Lambda: Migrating Existing Node Ap... by andreineculau on Saturday March 31, 2018 @01:03AM (#16721817)
You might be interested in trying out https://github.com/tobiipro/http-lambda (disclaimer: I'm the author)

for reasons that I've explained in a README section https://github.com/tobiipro/http-lambda#a-word-on-httpsgithu...

Your snippet becomes

    const {httpLambda} = require('http-lambda');
    const app = require('./app');
    exports.handler = httpLambda((http, _event, _context) => (
      http.createServer(app);
    ));

There are no comments on this comment yet.