Skip to content

Commit 17a993e

Browse files
authored
Local lambda invocation endpoint env var (#321)
add #321
1 parent 2219782 commit 17a993e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/AWSLambdaRuntimeCore/Lambda.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public enum Lambda {
143143
#if DEBUG
144144
if Lambda.env("LOCAL_LAMBDA_SERVER_ENABLED").flatMap(Bool.init) ?? false {
145145
do {
146-
return try Lambda.withLocalServer {
146+
return try Lambda.withLocalServer(invocationEndpoint: Lambda.env("LOCAL_LAMBDA_SERVER_INVOCATION_ENDPOINT")) {
147147
_run(configuration)
148148
}
149149
} catch {

0 commit comments

Comments
 (0)