Skip to content

Commit

Permalink
Merge commit 'bc0fedf105b12ffd2a367d053e14fb2121f1749e' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 15, 2022
2 parents 1f246eb + bc0fedf commit 781b220
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)` | <pre>[<br> "image/webp"<br>]</pre> | 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 |

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

## 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.
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 781b220

Please sign in to comment.