Open Edweis opened 2 years ago
Had the same issue after serverless-offline upgrade, try adding reloadHandler: true
to serverless-offline configuration.
Fixed it for me.
Thank you, it doesn’t work for me. I’ll check with serverless-offline
I am having the same issue, reloadHandler doesn't work for me either.
we just solved this, make sure you don't have any rules that would exclude everything in your pacakge option like this:
package:
individually: true
patterns:
- '!**'
- 'src/assets/*/**'
it was importing the ** pattern into our exclude
Describe the bug Running
sls offline
with aserverless.yml
containingWhen editing the file
src/endpoints/index.ts
, calling the endpoint is using the version of the code when the first compilation started.To Reproduce Steps to reproduce the behavior. If you have an example repository that would be even better:
src/endpoints/index.ts
, insertserverless offline
curl http://localhost:3000/dev/hello
returnsbatman
src/endpoints/index.ts
, tocurl http://localhost:3000/dev/hello
returnsbatman
, expectedrobin
Versions (please complete the following information):