From cf81bcaca3b91cbf579b2a3b7c6b3f3e0fb7375a Mon Sep 17 00:00:00 2001 From: Khaled Osman Date: Wed, 30 Oct 2019 17:52:22 +0100 Subject: [PATCH] perf(aws-nodejs-typescript): reuse http connections --- .../create/templates/aws-nodejs-typescript/serverless.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/plugins/create/templates/aws-nodejs-typescript/serverless.yml b/lib/plugins/create/templates/aws-nodejs-typescript/serverless.yml index aa4509b2a..256755b73 100644 --- a/lib/plugins/create/templates/aws-nodejs-typescript/serverless.yml +++ b/lib/plugins/create/templates/aws-nodejs-typescript/serverless.yml @@ -17,6 +17,8 @@ provider: runtime: nodejs10.x apiGateway: minimumCompressionSize: 1024 #Enable gzip compression for responses > 1KB + environment: + AWS_NODEJS_CONNECTION_REUSE_ENABLED: 1 functions: hello: