Skip to content

Releases: milliHQ/terraform-aws-next-js-image-optimization

v12.0.4

22 Jan 14:46
Compare
Choose a tag to compare

Changelog

v12.0.3

22 Jan 13:59
Compare
Choose a tag to compare

Changelog

v12.0.2

22 Jan 13:30
Compare
Choose a tag to compare

Changelog

  • Uses Image Optimizer module of Next.js 12.0.2 (#101)
  • Use relative path as lambda function local package path (#98)

v12.0.1

21 Dec 17:31
Compare
Choose a tag to compare

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

Changelog

v12.0.0

28 Nov 16:56
Compare
Choose a tag to compare

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.

⚠️ Breaking Changes ⚠️

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]
   ...
  }
}

Changelog

  • 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)

v11.1.2

14 Sep 19:05
Compare
Choose a tag to compare

Changelog

v11.1.1

02 Sep 16:03
Compare
Choose a tag to compare

The upgrade to Next.js 11.1.1 fixes a potential vulnerability which allowed a XSS-attack.
For more information see the Security Advisory.

Changelog

v11.1.0

30 Aug 18:28
Compare
Choose a tag to compare

⚠️ Namespace changed ⚠️

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.

Changelog

  • 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)

v11.0.1

06 Jul 11:53
Compare
Choose a tag to compare

Maintenance release to keep the module up-to-date with Next.js version.

Changelog

v11.0.0

15 Jun 20:58
Compare
Choose a tag to compare

The output cloudfront_origin_image_optimizer is now deprecated.
Use cloudfront_origin instead.

Changelog

  • 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)