Closed ii-igku closed 3 years ago
actually never mind - it looks like it's an issue with Serverless Offline plugin, not with the Middleware. after we deployed the configuration we can see the pre-function is being called.
it would be great to have sls offline
work as well though, I may try to create an improvement request there...
we're on Serverless 2.5 and trying to configure the middleware plugin. here is the test configuration
and it works fine when we call a function like this:
but when we're trying to start
sls offline
and call the same function using postman GET http://localhost:3000/test-middleware