How to use `withLocalServer` if it's internal?

I'm following this tutorial: which suggests using withLocalServer to test your lambda locally. That function isn't public API so I can't use it from my package. I'm pretty new to SwiftPM. Is there some flag I should be passing to my Package.swift that would expose internal methods? Is there some other way I should use this function?

hi @tsabend, thanks for pointing this out. we just released a version today that made this internal and you now turn this functionality on by setting an environment variable named LOCAL_LAMBDA_SERVER_ENABLED to true to enable this functionality

cc @fabianfett

1 Like


@tsabend thanks for pointing this out. I've updated my tutorial: