Open franciscocpg opened 6 years ago
Can you confirm that this works when there are multiple functions and the target function isn't the first one?
Yes, I'll do it tomorrow.
Also I'm going to try with serverless-offline
plugin.
@azurelogic You were totally right about multiple functions.
So the best approach I found was to inject process.env._HANDLER
just like AWS is doing on its environments.
Maybe @HyperBrain could give a quick look here too?
In general, I think for the invoke local case, this would work (although it should be tested thoroughly first).
@azurelogic I think the PR is ready for review now.
Any news here?
Waiting for this PR to be merged..
Fixes #22