serverless-http
serverless-http copied to clipboard
Broken with Restify?
I had problems running this library with the current version of Restify. I received the 'unsupported framework' error.
I seem to have been able to get it to work with the following hack:
httpd.handler = httpd._onRequest;
handler = serverless(httpd);
I wonder whether _onRequest
should be checked for in getFramework
?
(Another candidate might be _runRoute
.)
That makes sense, yeah, the framework detection is pretty hacky and in some cases leans more on internal details (subject to change - like this seems to be)
@dougmoscrop: Thanks for reviewing that PR.
Would you mind publishing when you get a chance? - That way, I can remove that workaround from my code.