3 ms·
You might be interested in trying out https://github.com/tobiipro/http-lambda https://github.com/tobiipro/http-lambda (disclaimer: I'm the author) for reasons
by andreineculau 9y ago
You might be interested in trying out https://github.com/tobiipro/http-lambda 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-httpsgithubcomawslabsaws-serverless-express 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);
));