Skip to content

Can we allow customisation of local server port #556

@adam-fowler

Description

@adam-fowler

Expected behavior

Add environment variable LOCAL_LAMBDA_PORT to customise port local server binds to.

Actual behavior

Airplay can use port 7000

Steps to reproduce

Run local lambda on Mac with setting General -> AirDrop & Handoff -> AirPlay receiver enabled
Check server response using curl -I localhost:7000

If possible, minimal yet complete reproducer code (or URL to code)

No response

What version of this project (swift-aws-lambda-runtime) are you using?

2.0.0-beta.2

Swift version

Apple Swift version 6.1 (swift-6.1-RELEASE)
Target: arm64-apple-macosx15.0
Darwin Adams-Mac-mini.local 24.6.0 Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:40 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6041 arm64

Amazon Linux 2 docker image version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions