Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Amplify deploy - use compression

We're using AWS Amplify to serve an Angular frontend via CI/CD (connected Github-Repo). Amplify does not seem to compress by default resulting in larger content delivery than necessary.

I can't find any option in the app settings inside the Amplify dashboard nor a solution online.

enter image description here

Is it possible to use compression (gzip or brotli) with AWS Amplify?

like image 446
F.H. Avatar asked Jul 01 '26 14:07

F.H.


1 Answers

We managed to serve gziped responses and if i remember it correctly it was a setting hidden in the cloudfront configuration.

enter image description here

Altough i don't remember how i've activated that option, probably through the aws-cli.


UPDATE: Amplify seems to serve gzip by default now

like image 189
F.H. Avatar answered Jul 05 '26 16:07

F.H.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!