@ndlib/ndlib-cdk2 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -114,8 +114,8 @@ class StaticHost extends constructs_1.Construct {
114
114
  viewerProtocolPolicy: aws_cdk_lib_1.aws_cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS,
115
115
  });
116
116
  // Create DNS record (conditionally)
117
- if (props.createDns) {
118
- for (const hostedZoneId of props.hostedZoneIds || ['']) {
117
+ if (props.createDns && props.hostedZoneIds && props.hostedZoneIds.length > 0) {
118
+ for (const hostedZoneId of props.hostedZoneIds) {
119
119
  new aws_cdk_lib_1.aws_route53.CnameRecord(this, `ServiceCNAME${hostedZoneId}`, {
120
120
  recordName: this.hostname,
121
121
  comment: this.hostname,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndlib/ndlib-cdk2",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Reusable CDK2 modules used within Hesburgh Libraries of Notre Dame",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",