Skip to content

Commit 781b220

Browse files
Merge commit 'bc0fedf105b12ffd2a367d053e14fb2121f1749e' into release
2 parents 1f246eb + bc0fedf commit 781b220

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## [Unreleased]
44

5+
## [12.0.7] - 2022-02-15
6+
7+
- 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))
8+
- 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))
9+
510
## [12.0.6] - 2022-01-29
611

712
- Bump node-fetch from 2.6.6 to 2.6.7 ([#106](https://github.com/milliHQ/terraform-aws-next-js-image-optimization/pull/106))

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Then rebuild and redeploy your Next.js application to make use of the changed co
140140
| next\_image\_domains | Allowed origin domains that can be used for fetching images. | `list(string)` | `[]` | no |
141141
| 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)` | <pre>[<br> "image/webp"<br>]</pre> | no |
142142
| next\_image\_image\_sizes | Allowed image sizes that should be used for image optimization. | `list(number)` | `null` | no |
143-
| next\_image\_version | Next.js version from where you want to use the image optimizer from. Supports semver ranges. | `string` | `"12.0.6"` | no |
143+
| next\_image\_version | Next.js version from where you want to use the image optimizer from. Supports semver ranges. | `string` | `"12.0.7"` | no |
144144
| 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 |
145145
| tags | Tag metadata to label AWS resources that support tags. | `map(string)` | `{}` | no |
146146

@@ -159,6 +159,11 @@ Then rebuild and redeploy your Next.js application to make use of the changed co
159159
<!--- END_TF_DOCS --->
160160
<!-- prettier-ignore-end -->
161161

162+
## Limits
163+
164+
- Max file size of a resized image is 6mb ([#110](https://github.com/milliHQ/terraform-aws-next-js-image-optimization/issues/110))
165+
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).
166+
162167
## Versioning
163168

164169
The module internally relies on the original Next.js image optimizer.

variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
variable "next_image_version" {
55
description = "Next.js version from where you want to use the image optimizer from. Supports semver ranges."
66
type = string
7-
default = "12.0.6"
7+
default = "12.0.7"
88
}
99

1010
variable "next_image_base_origin" {

0 commit comments

Comments
 (0)