Skip to content
This repository was archived by the owner on Nov 13, 2021. It is now read-only.

Commit c000e48

Browse files
committed
fix(env): do not set NODE_OPTIONS in here
1 parent 64dc67f commit c000e48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/NodejsFunction.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,9 @@ export class NodejsFunction extends lambda.Function {
145145
// Enable connection reuse for aws-sdk
146146
if (props.awsSdkConnectionReuse ?? true) {
147147
this.addEnvironment("AWS_NODEJS_CONNECTION_REUSE_ENABLED", "1");
148-
this.addEnvironment("NODE_OPTIONS", "--enable-source-maps");
149148
}
149+
150+
this.addEnvironment("NODE_OPTIONS", "--enable-source-maps");
150151
}
151152
}
152153

0 commit comments

Comments
 (0)