From f156f3fcb20c8993abf586c450ae49be70240635 Mon Sep 17 00:00:00 2001 From: Tomas Echeverri Date: Sun, 22 Oct 2023 23:46:14 +0200 Subject: [PATCH] Use Node.js 16 syntax for AWS Lambda module handler References - https://docs.aws.amazon.com/lambda/latest/dg/nodejs-handler.html Signed-off-by: Tomas Echeverri --- examples/renderer-aws-lambda/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/renderer-aws-lambda/index.js b/examples/renderer-aws-lambda/index.js index f12ae46c..53bff1f1 100644 --- a/examples/renderer-aws-lambda/index.js +++ b/examples/renderer-aws-lambda/index.js @@ -1,5 +1,3 @@ const { createChromeAWSLambdaRenderer } = require('@loki/renderer-aws-lambda'); -module.exports = { - handler: createChromeAWSLambdaRenderer(), -}; +exports.handler = createChromeAWSLambdaRenderer();