Package Exports
- serverless-content-encoding
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (serverless-content-encoding) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Serverless Content Encoding
A serverless plugin to enable Content Encoding
feature in API Gateway for lambda function response compression.
Install
Using yarn:
$ yarn add -D serverless-content-encoding
Using npm:
$ npm install --save-dev serverless-content-encoding
Configuration
Add the plugin and its configuration to your serverless.yml
file:
plugins:
- serverless-content-encoding
custom:
contentEncoding:
minimumCompressionSize: 10 # Minimum body size required for compression in bytes
Usage
This plugin will be triggered during deployment process
serverless deploy