Tracked
- NPM Downloads Last Month
- 16150
- Issues
- 0
- Stars
- 0
- Forks
- 0
- Watchers
- 0
Serverless plugin that enables/disables content compression setting in API Gateway
Serverless Framework now supports this functionality out of the box. Example:
provider:
name: aws
apiGateway:
minimumCompressionSize: 1024
npm install --save-dev serverless-api-compression
serverless.yml
config ``` plugins: contentCompression
attribute to your custom
section ``` custom: contentCompression: 1024```
contentCompression
value is a MinimumCompressionSize in bytes. Use 0
to enable compression for all responses. Use null
or false
to disable it.