Skip to content

Commit cac58c0

Browse files
Merge commit 'd66b2ae84f7ea53f87da55a160ce8a52807325f3' into release
2 parents 7ef3167 + d66b2ae commit cac58c0

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## [Unreleased]
44

5+
## [0.12.1] - 2022-04-11
6+
7+
- Pass image settings to the optimization module ([#297](https://github.com/milliHQ/terraform-aws-next-js/issues/297), [#299](https://github.com/milliHQ/terraform-aws-next-js/pull/299))
8+
59
## [0.12.0] - 2022-04-07
610

711
- Ensure compatibility with AWS Provider Version 4 ([#286](https://github.com/milliHQ/terraform-aws-next-js/issues/286), [#291](https://github.com/milliHQ/terraform-aws-next-js/pull/291))

main.tf

+6-3
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,12 @@ module "next_image" {
158158
# device) sizes to the optimizer and by setting the other
159159
# (next_image_device_sizes) to an empty array which prevents the optimizer
160160
# from adding the default device settings
161-
next_image_domains = lookup(local.config_file_images, "domains", [])
162-
next_image_image_sizes = lookup(local.config_file_images, "sizes", [])
163-
next_image_device_sizes = []
161+
next_image_domains = lookup(local.config_file_images, "domains", [])
162+
next_image_image_sizes = lookup(local.config_file_images, "sizes", [])
163+
next_image_device_sizes = []
164+
next_image_formats = lookup(local.config_file_images, "formats", null)
165+
next_image_dangerously_allow_SVG = lookup(local.config_file_images, "dangerouslyAllowSVG", false)
166+
next_image_content_security_policy = lookup(local.config_file_images, "contentSecurityPolicy", null)
164167

165168
source_bucket_id = module.statics_deploy.static_bucket_id
166169

modules/proxy/variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
variable "proxy_module_version" {
66
type = string
7-
default = "0.12.0"
7+
default = "0.12.1"
88
}
99

1010
variable "lambda_default_runtime" {

modules/statics-deploy/variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ variable "static_files_archive" {
44

55
variable "deploy_trigger_module_version" {
66
type = string
7-
default = "0.12.0"
7+
default = "0.12.1"
88
}
99

1010
variable "expire_static_assets" {

0 commit comments

Comments
 (0)