- 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)
- Uses Image Optimizer module of Next.js 12.1.2 (#118)
- Uses Image Optimizer module of Next.js 12.1.1 (#116)
- 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)
- Updates sharp from
v0.30.1
tov0.30.3
(#115) - Uses Image Optimizer module of Next.js 12.0.10 (#108)
- Uses Image Optimizer module of Next.js 12.0.9 (#104)
- Smaller and better optimized image optimizer package (#113)
- Uses Image Optimizer module of Next.js 12.0.8 (#97)
- Updates sharp to
v0.30.1
(#109) - Uses Image Optimizer module of Next.js 12.0.7 (#93)
- Bump node-fetch from 2.6.6 to 2.6.7 (#106)
- Uses Image Optimizer module of Next.js 12.0.6 (#103)
- Uses Image Optimizer module of Next.js 12.0.5 (#96)
- Uses Image Optimizer module of Next.js 12.0.4 (#86)
- Uses Image Optimizer module of Next.js 12.0.3 (#84)
- Uses Image Optimizer module of Next.js 12.0.2 (#101)
- Use relative path as lambda function local package path (#98)
In this release we fixed a bug that could occur when using absolute image paths (When you use S3 as backend, you are not affected).
In addition you can now define a new input variable next_image_base_origin
that can be used to resolve absolute image paths.
When you set next_image_base_origin = "https://example.com"
requests for an absolute image path (/path/to/image.png
) are then resolved to the URL https://example.com/path/to/image.png
.
We also added a fully featured example how to use next export
together with S3 and the image optimizer, check it out: Statically exported Next.js app hosted on S3
- Add base origin setting (#94, #95)
- Uses Image Optimizer module of Next.js 12.0.1 (#81)
This release introduces a new package called Pixel that abstracts the image optimization stuff and makes it usable with platforms other than AWS Lambda. We plan to offer multiple flavors of it, like express middleware or docker images.
We have removed the output variable cloudfront_origin_image_optimizer
that was deprecated since the v11.0.0 release.
To upgrade, please use the output variable cloudfront_origin
from now on.
E.g. when using the "With existing CloudFront distribution example" you should make the following changes:
module "next_image_optimizer" {
source = "milliHQ/next-js-image-optimization/aws"
...
}
resource "aws_cloudfront_distribution" "distribution" {
...
dynamic "origin" {
- for_each = [module.next_image_optimizer.cloudfront_origin_image_optimizer]
+ for_each = [module.next_image_optimizer.cloudfront_origin]
...
}
}
- Uses Image Optimizer module of Next.js 12.0.0 (#80)
- Add support for AVIF (#73, #92)
- Fixes "Error while trying to add new domain" bug (#68, #69)
- Remove random strings from resource names (#72, #77)
- Bump sharp from 0.29.1 to 0.29.3 (#79, #85)
- Remove deprecated output
cloudfront_origin_image_optimizer
(#78, #82) - Remove referer header from cache key when S3 is used (#87, #91)
- Uses Image Optimizer module of Next.js 11.1.2 (#63)
- Updates sharp to
v0.29.1
(#66) - Bump terraform-aws-lambda module to 2.17.0 (#67)
The upgrade to Next.js 11.1.1 fixes a potential vulnerability which allowed a XSS-attack. For more information see the Security Advisory.
- Uses Image Optimizer module of Next.js 11.1.1 (#64)
We recently changed the namespace of this module from dealmore
to milliHQ
.
Make sure to upgrade the source of the module accordingly:
module "next_image_optimizer" {
- source = "dealmore/next-js-image-optimization/aws"
+ source = "milliHQ/next-js-image-optimization/aws"
}
Beginning with this release we change the engine that is used to optimize the images from squoosh to Sharp. Sharp has a much better performance and is therefore better suited for the job. Please read the Next.js RFC for more information.
- Use sharp as image optimization engine (#51, #57)
- Fix typo for default image sizes (#53, #56)
- Uses Image Optimizer module of Next.js 11.1.0 (#54)
- Uses Image Optimizer module of Next.js 11.0.1 (#49)
The output cloudfront_origin_image_optimizer
is now deprecated.
Use cloudfront_origin
instead.
- Fixes image optimization for webp format (#44)
Thanks to @vcnc-hex for contributing! - Uses Image Optimizer module of Next.js 11.0.0 (#45)
- Add output for cache behavior (#43, #48)
- Bump AWS API Gateway Terraform module from 0.11.0 to 1.1.0 (#47)
- Bump AWS Lambda Terraform module from 1.47.0 to 2.4.0 (#46)
- Improves caching of processed images by using CloudFront Origin Shield (#2, #41)
- Uses Image Optimizer module of Next.js 10.2.3 (#39)
- Uses Image Optimizer module of Next.js 10.2.2 (#35)
- Uses Image Optimizer module of Next.js 10.2.1 (#38)
- Uses Image Optimizer module of Next.js 10.2.0 (#31)
- Uses Image Optimizer module of Next.js 10.1.3 (#28)
- Uses Image Optimizer module of Next.js 10.1.2 (#25)
- Uses Image Optimizer module of Next.js 10.1.1 (#33)
- Uses Image Optimizer module of Next.js 10.1.0 (#32)
- Uses Image Optimizer module of Next.js 10.0.9 (#22)
- Makes the module compatible with Terraform
0.15
(#26, #29) - Uses Image Optimizer module of Next.js 10.0.8 (#19)
- Uses Image Optimizer module of Next.js 10.0.7 (#10)
- Uses Image Optimizer module of Next.js 10.0.6 (#3)
- Bundling of the image optimizer has changed from ncc to nft (#23, #24)
Note 1: From now on we aligning the versioning schema with the releases of Next.js.
Note 2: When upgrading from a previous release, you may experience an error from Terraform:
Error: error updating CloudFront Distribution:
InvalidArgument: The parameter ForwardedValues cannot be used when a cache policy is associated to the cache behavior.
status code: 400
This is a known bug in the Terraform AWS provider and may requires a manual upgrade in the AWS Console (terraform-provider-aws#17626).
- Fixes wrong response for repeated requests from external source (#12, #13)
- Use Request and Cache Policies in CloudFront distribution (#5, #9)
- Upgrades Lambda runtime from
nodejs12.x
tonodejs14.x
. (#4, #8)
- Bump internal module
terraform-aws-modules/apigateway-v2/aws
from0.8.0
to0.11.0
(#16, #18)
Resolves compatibility issue with newer versions of Terraform.
- Adds support to resize images from a S3 origin (#7)
Initial release