Skip to content

Commit c932fce

Browse files
merge commit
2 parents 10f0a3e + 761e3c7 commit c932fce

File tree

5 files changed

+20
-5
lines changed

5 files changed

+20
-5
lines changed

.github/workflows/lint.yml

+13-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
pull_request:
88

99
jobs:
10-
lint:
11-
name: Lint
10+
lint-js:
11+
name: Lint JavaScript
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
@@ -27,3 +27,14 @@ jobs:
2727

2828
- name: Lint Prettier
2929
run: yarn lint:prettier
30+
31+
lint-tf:
32+
name: Lint Terraform
33+
runs-on: ubuntu-latest
34+
container: hashicorp/terraform
35+
steps:
36+
- name: Checkout
37+
uses: actions/checkout@v2
38+
39+
- name: Lint Terraform
40+
run: terraform fmt -check -recursive -diff

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 10.0.9 (April 27, 2021)
4+
5+
- Uses Image Optimizer module of [Next.js 10.0.9](https://github.com/vercel/next.js/releases/tag/v10.0.9) ([#22](https://github.com/dealmore/terraform-aws-next-js-image-optimization/pull/22))
6+
37
## 10.0.8 (April 26, 2021)
48

59
- Makes the module compatible with Terraform `0.15` ([#26](https://github.com/dealmore/terraform-aws-next-js-image-optimization/issues/26), [#29](https://github.com/dealmore/terraform-aws-next-js-image-optimization/pull/29))

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ module.exports = {
130130
| next\_image\_device\_sizes | Allowed device sizes that should be used for image optimization. | `list(number)` | `null` | no |
131131
| next\_image\_domains | Allowed origin domains that can be used for fetching images. | `list(string)` | `[]` | no |
132132
| next\_image\_image\_sizes | Allowed image sizes that should be used for image optimization. | `list(number)` | `null` | no |
133-
| next\_image\_version | Next.js version from where you want to use the image optimizer from. Supports semver ranges. | `string` | `"10.0.8"` | no |
133+
| next\_image\_version | Next.js version from where you want to use the image optimizer from. Supports semver ranges. | `string` | `"10.0.9"` | no |
134134
| 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 |
135135
| tags | Tag metadata to label AWS resources that support tags. | `map(string)` | `{}` | no |
136136

examples/with-existing-cloudfront/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ resource "aws_cloudfront_distribution" "distribution" {
4444
compress = true
4545

4646
origin_request_policy_id = module.next_image_optimizer.cloudfront_origin_request_policy_id
47-
cache_policy_id = module.next_image_optimizer.cloudfront_cache_policy_id
47+
cache_policy_id = module.next_image_optimizer.cloudfront_cache_policy_id
4848
}
4949

5050
# This is a generic dynamic to create an origin

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 = "10.0.8"
7+
default = "10.0.9"
88
}
99

1010
variable "next_image_domains" {

0 commit comments

Comments
 (0)