Skip to content

Commit

Permalink
Another attempt to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aran112000 committed Apr 27, 2023
1 parent cc4c14b commit 972ed7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/constructs/aws/ServerSideWebsite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ export class ServerSideWebsite extends AwsConstruct {
private createRequestFunction(): cloudfront.Function {
let additionalCode = "";

if (this.configuration.redirectToMainDomain === true && this.domains.length > 1) {
if (this.configuration.redirectToMainDomain === true && this?.domains && this.domains.length > 1) {
additionalCode += redirectToMainDomain(this.domains);
}

Expand Down

0 comments on commit 972ed7c

Please sign in to comment.