Open FotoramaMX opened 5 years ago
Hi @FotoramaMX,
You need to install the serverless-api-compression
as devDependency. After that, provide serverless-api-compression
at your serverless.yml
file, at the plugin section like this:
plugins:
- serverless-apigw-binary
- serverless-api-compression
And that should do the trick.
Cheers!
Hi @FotoramaMX,
You need to install the
serverless-api-compression
as devDependency. After that, provideserverless-api-compression
at yourserverless.yml
file, at the plugin section like this:plugins: - serverless-apigw-binary - serverless-api-compression
And that should do the trick.
Cheers!
Thanks so much! so this configurations works for a Firebase Deploy?
@FotoramaMX Not sure to be honest, the serverless-api-compression
package only works for AWS as stated on npm readme:
Serverless plugin that enables/disables content compression setting in API Gateway
But looks like Firebase already has gzip compression as I read on this StackOverflow.
I'm submitting a...
In package
Current behavior
Hi! I'm trying to compress my files with gzipper plugin, but this doesn't works for a universal/serverless mode do you have any idea of this?
Expected behavior