Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Commit 6f9127f

Browse files
committed
Working on the lambda handler to output proper HTML content.
1 parent 4ceabb8 commit 6f9127f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lambda/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ exports.handler = function(event, context) {
4949
render.render(fullPath).then(function (arr) {
5050
var urlPath = arr[0];
5151
var renderedContent = arr[1];
52-
context.succeed(renderedContent);
52+
context.succeed({variableHTML: renderedContent});
5353
}).catch(function (error) {
5454
console.log('ERROR WHILE RENDERING: ', e);
5555
context.succeed({error: error});

0 commit comments

Comments
 (0)