Tracked
- NPM Downloads Last Month
- 186
- Issues
- 0
- Stars
- 0
- Forks
- 0
- Watchers
- 0
This plugin helps you add some conf that will only work for serverless invoke local
This way :
npm install --save-dev serverless-local-environment
You can use it like
serverless.yml
plugins:
- serverless-local-environment
...
functions:
my-function:
handler: index.handler
stage: dev
environment:
ENV: dev
local-environment:
ENV: local
Aws serverless plugin set LD_LIBRARY_PATH to '/usr/local/lib64/node-v4.3.x/lib:/lib64:/usr/lib64:/var/runtime:/var/runtime/lib:/var/task:/var/task/lib'
(see https://github.com/serverless/serverless/blob/4b71faf2128308894646940ce2fb64e826450972/lib/plugins/aws/invokeLocal/index.js#L95), this library is adding this value to your local LD_LIBRARY_PATH values