Skip to content

Commit

Permalink
Fix domainName not being propagated from WebFrontend when constructin…
Browse files Browse the repository at this point in the history
…g RedirectWww.
  • Loading branch information
davidcarboni committed Dec 20, 2024
1 parent 06badc3 commit 7ad35ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cdk-patterns/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ A couple of highlights:
* `ghaUser` - if you use Github Actions, this generates an IAM user access key with permission to deploy to resources defined in your stack (see also `addGha*` functions such as `addGhaSecret`, `addGhaVariable`, `addGhaLambda` etc.)

## Release notes
* **0.6.6**: Fix `domainName` not being propagated from `WebFrontend` when constructing `RedirectWww`.
* **0.6.5**: Update to `S3BucketOrigin` fron `S3Origin`
* **0.6.4**: `actions/checkout@v4`, `actions/setup-node@v4` and Node `lts`
* **0.6.3**: Add `DynamoDbStreamFunction` - a Lambda that reads a DynamoDB table stream
Expand Down
2 changes: 1 addition & 1 deletion cdk-patterns/src/WebFrontend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class WebFrontend extends Construct {

if (props.redirectWww !== false) {
// Redirect www -> zone root
new RedirectWww(scope, id, { zone: props.zone, certificate: this.certificate });
new RedirectWww(scope, id, { zone: props.zone, certificate: this.certificate, domainName });
}
}
}

0 comments on commit 7ad35ff

Please sign in to comment.