serverless-serve
serverless-serve copied to clipboard
Allow to run functions with env variables correctly populated
My lambda functions use process.env
to read variables configured from the environment. They currently crash because functions are not populating this variables correctly.
This PR calls the Runtime.run
function which properly initializes env variables for the specific function.
note: if multiple functions use the same env variables and functions are executed concurrently, unknown errors may happen as process.env
will be modified nondeterministically