From 110cd0e51952c26e5ac2d2aa603e502f55cb4a1e Mon Sep 17 00:00:00 2001 From: FabrizioCafolla Date: Tue, 3 Oct 2023 11:14:19 +0200 Subject: [PATCH] fix(stacks): condition disableNewrilc --- src/constructs/aws-lambda/newrelic-functions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constructs/aws-lambda/newrelic-functions.ts b/src/constructs/aws-lambda/newrelic-functions.ts index a6f3304..d9ecc9d 100644 --- a/src/constructs/aws-lambda/newrelic-functions.ts +++ b/src/constructs/aws-lambda/newrelic-functions.ts @@ -71,7 +71,7 @@ export class NewRelicFunction extends Function { super(scope, id, { ...props, handler }); - if (props.disableNewRelic !== false) { + if (props.disableNewRelic === false) { this.addNewRelicLayer(scope, { handler: app_handler, newRelicLayerName: props.newRelicLayerName,