Skip to content

Commit

Permalink
Use Node.js 16 syntax for AWS Lambda module handler
Browse files Browse the repository at this point in the history
References
- https://docs.aws.amazon.com/lambda/latest/dg/nodejs-handler.html

Signed-off-by: Tomas Echeverri <tomechval@gmail.com>
  • Loading branch information
techeverri committed Oct 29, 2023
1 parent affdcf0 commit f156f3f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/renderer-aws-lambda/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const { createChromeAWSLambdaRenderer } = require('@loki/renderer-aws-lambda');

module.exports = {
handler: createChromeAWSLambdaRenderer(),
};
exports.handler = createChromeAWSLambdaRenderer();

0 comments on commit f156f3f

Please sign in to comment.