Releases: milliHQ/terraform-aws-next-js-image-optimization
v12.1.3
It is now possible to use a custom domain and SSL certificate with the default CloudFront distribution.
Please see the Custom Domain Example for more information how to use this.
Changelog
- Uses Image Optimizer module of Next.js 12.1.3 (#121)
- Updates sharp from
v0.30.3
tov0.30.7
(#136) - Support usage of custom domain and SSL certificate with the default CloudFront distribution (#134)
- Minimum protocol version for the default CloudFront distribution can now set using
cloudfront_minimum_protocol_version
variable. New default value isTLSv1
(wasTLSv1.2_2018
before) (#134)
New Contributors
v12.1.2
v12.1.1
This release adds support for older browsers when the source image has a newer format (AVIF or Webp) but the browser is not supporting it (Header Accept: */*
). In these cases the .avif
or .webp
image is converted into a supported format (.jpeg
) instead of serving the original file.
See the Next.js PR for more details: vercel/next.js#35190
Changelog
- Uses Image Optimizer module of Next.js 12.1.1 (#116)
v12.1.0
Breaking Changes
-
The module now requires AWS Provider Version
v4.8.0
or higher.
Please follow the official upgrade guide when upgrading from thev3
provider: Terraform AWS Provider Version 4 Upgrade Guide.
We also have updated our examples accordingly: Examples -
SVG is no longer automatically optimized.
For security reasons Next.js has disabled the optimization of SVG images by default, instead they added two new optionsdangerouslyAllowSVG
&contentSecurityPolicy
to the Next image config: Dangerously Allow SVG.
To use them together with the module we introduced 2 new variablesnext_image_dangerously_allow_SVG
&next_image_content_security_policy
that can be used to configure the behaviour:module "next_image_optimizer" { source = "milliHQ/next-js-image-optimization/aws" + next_image_dangerously_allow_SVG = true + next_image_content_security_policy = "default-src 'self'; script-src 'none'; sandbox;" }
Changelog
- Ensure compatibility with AWS Provider Version 4 (#119, #120)
- Uses Image Optimizer module of Next.js 12.1.0 (#123)
- Adds option to enable SVG support (#124)