diff --git a/CHANGELOG.md b/CHANGELOG.md index f793ce1..2b3893a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ ## [Unreleased] +## [12.0.7] - 2022-02-15 + +- Updates sharp to [`v0.30.1`](https://github.com/lovell/sharp/releases/tag/v0.30.1) ([#109](https://github.com/milliHQ/terraform-aws-next-js-image-optimization/pull/109)) +- Uses Image Optimizer module of [Next.js 12.0.7](https://github.com/vercel/next.js/releases/tag/v12.0.7) ([#93](https://github.com/milliHQ/terraform-aws-next-js-image-optimization/pull/93)) + ## [12.0.6] - 2022-01-29 - Bump node-fetch from 2.6.6 to 2.6.7 ([#106](https://github.com/milliHQ/terraform-aws-next-js-image-optimization/pull/106)) diff --git a/README.md b/README.md index 46fdd39..298ee74 100644 --- a/README.md +++ b/README.md @@ -140,7 +140,7 @@ Then rebuild and redeploy your Next.js application to make use of the changed co | next\_image\_domains | Allowed origin domains that can be used for fetching images. | `list(string)` | `[]` | no | | next\_image\_formats | If the Accept head matches more than one of the configured formats, the first match in the array is used. Therefore, the array order matters. If there is no match, the Image Optimization API will fallback to the original image's format. | `list(string)` |
[| no | | next\_image\_image\_sizes | Allowed image sizes that should be used for image optimization. | `list(number)` | `null` | no | -| next\_image\_version | Next.js version from where you want to use the image optimizer from. Supports semver ranges. | `string` | `"12.0.6"` | no | +| next\_image\_version | Next.js version from where you want to use the image optimizer from. Supports semver ranges. | `string` | `"12.0.7"` | no | | source\_bucket\_id | When your static files are deployed to a Bucket (e.g. with Terraform Next.js) the optimizer can pull the source from the bucket rather than over the internet. | `string` | `null` | no | | tags | Tag metadata to label AWS resources that support tags. | `map(string)` | `{}` | no | @@ -159,6 +159,11 @@ Then rebuild and redeploy your Next.js application to make use of the changed co +## Limits + +- Max file size of a resized image is 6mb ([#110](https://github.com/milliHQ/terraform-aws-next-js-image-optimization/issues/110)) + Resized images returned by the image optimization API cannot exceed 6mb in size, because this is the maximum allowed [payload size for AWS Lambda](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#function-configuration-deployment-and-execution). + ## Versioning The module internally relies on the original Next.js image optimizer. diff --git a/variables.tf b/variables.tf index 63ab957..bddee24 100644 --- a/variables.tf +++ b/variables.tf @@ -4,7 +4,7 @@ variable "next_image_version" { description = "Next.js version from where you want to use the image optimizer from. Supports semver ranges." type = string - default = "12.0.6" + default = "12.0.7" } variable "next_image_base_origin" {
"image/webp"
]