Skip to content

Commit b1a78f8

Browse files
committed
remove process.env.STAGE from local lambda code
1 parent 77c4e5f commit b1a78f8

File tree

1 file changed

+1
-3
lines changed
  • ab-testing/notification-lambda/src

1 file changed

+1
-3
lines changed

ab-testing/notification-lambda/src/run.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
import type { CloudFormationCustomResourceEvent, Context } from "aws-lambda";
1313
import { handler } from "./index.ts";
1414

15-
const stage = process.env.STAGE ?? "CODE";
16-
1715
process.env.EMAIL_DOMAIN = `abtesting.code.dev-gutools.co.uk`;
1816

1917
// Create a mock CloudFormation event
@@ -51,7 +49,7 @@ const mockContext: Context = {
5149
succeed: () => {},
5250
};
5351

54-
console.log(`Running lambda handler locally with STAGE=${stage}\n`);
52+
console.log(`Running lambda handler locally\n`);
5553
console.log(`EMAIL_DOMAIN=${process.env.EMAIL_DOMAIN}\n`);
5654

5755
// Run the handler

0 commit comments

Comments
 (0)