Not sure what’s going on here but I’ve done a search for this and can’t seem to find a reason why this doesn’t work.
Not sure why i would want to namespace my functions a second time (the first being the filename.)
Hey @SeeThruHead the handler Syntax for the serverless.yml file is
filename.exportedFunctionName
So if you have a file called redirector and export a function called redirect in there you can write handler: redirector.redirect in the serverless.yml file.
So the only thing you need to do here is to do a named export and then update the handler in your serverless.yml to point to the exported handler.
You have to export a distinct handler function - you can’t use the default export, as Lambda doesn’t support it (i.e. it’s not a Serverless issue). The convention is to call it handler.