diff --git a/lib/plugins/create/templates/aws-nodejs-ecma-script/second.js b/lib/plugins/create/templates/aws-nodejs-ecma-script/second.js index 8da564f9e..a932eac05 100644 --- a/lib/plugins/create/templates/aws-nodejs-ecma-script/second.js +++ b/lib/plugins/create/templates/aws-nodejs-ecma-script/second.js @@ -8,7 +8,7 @@ export const hello = (event, context, cb) => { body: JSON.stringify({ message: 'Go Serverless Webpack (Ecma Script) v1.0! Second module!', input: event, - }), + }, null, 2), }; p .then(() => cb(null, response)) diff --git a/lib/plugins/create/templates/aws-nodejs-typescript/handler.ts b/lib/plugins/create/templates/aws-nodejs-typescript/handler.ts index db1831f55..499e9d175 100644 --- a/lib/plugins/create/templates/aws-nodejs-typescript/handler.ts +++ b/lib/plugins/create/templates/aws-nodejs-typescript/handler.ts @@ -7,6 +7,6 @@ export const hello: APIGatewayProxyHandler = async (event, _context) => { body: JSON.stringify({ message: 'Go Serverless Webpack (Typescript) v1.0! Your function executed successfully!', input: event, - }), + }, null, 2), }; }