Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Inqnuam committed Aug 14, 2023
1 parent 55ca9a2 commit b75477e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,7 @@ class ServerlessAwsLambda extends Daemon {

this.runtimeConfig.memorySize = memorySize;
this.runtimeConfig.timeout = timeout;
this.runtimeConfig.environment = environment ?? {};

this.runtimeConfig.environment = environment ? {...environment} : {};
const awsEnvKeys = Object.keys(process.env).filter((x) => x.startsWith("AWS_"));

awsEnvKeys.forEach((x: string) => {
Expand Down

0 comments on commit b75477e

Please sign in to comment.