@gradientedge/cdk-utils 4.12.0 → 4.12.1

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.
@@ -147,9 +147,10 @@ class SiteWithEcsBackend extends common_1.CommonConstruct {
147
147
  ? `${this.props.siteSubDomain}-internal.${this.fullyQualifiedDomainName}`
148
148
  : `${this.props.siteSubDomain}-internal-${this.props.stage}.${this.fullyQualifiedDomainName}`;
149
149
  /* the external domain name exposed to CloudFront */
150
- this.siteExternalDomainName = this.isProductionStage()
151
- ? `${this.props.siteSubDomain}.${this.fullyQualifiedDomainName}`
152
- : `${this.props.siteSubDomain}-${this.props.stage}.${this.fullyQualifiedDomainName}`;
150
+ this.siteExternalDomainName =
151
+ this.isProductionStage() || this.props.skipStageForARecords
152
+ ? `${this.props.siteSubDomain}.${this.fullyQualifiedDomainName}`
153
+ : `${this.props.siteSubDomain}-${this.props.stage}.${this.fullyQualifiedDomainName}`;
153
154
  this.siteDomainNames = [this.siteExternalDomainName];
154
155
  }
155
156
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "4.12.0",
3
+ "version": "4.12.1",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -155,9 +155,10 @@ export class SiteWithEcsBackend extends CommonConstruct {
155
155
  : `${this.props.siteSubDomain}-internal-${this.props.stage}.${this.fullyQualifiedDomainName}`
156
156
 
157
157
  /* the external domain name exposed to CloudFront */
158
- this.siteExternalDomainName = this.isProductionStage()
159
- ? `${this.props.siteSubDomain}.${this.fullyQualifiedDomainName}`
160
- : `${this.props.siteSubDomain}-${this.props.stage}.${this.fullyQualifiedDomainName}`
158
+ this.siteExternalDomainName =
159
+ this.isProductionStage() || this.props.skipStageForARecords
160
+ ? `${this.props.siteSubDomain}.${this.fullyQualifiedDomainName}`
161
+ : `${this.props.siteSubDomain}-${this.props.stage}.${this.fullyQualifiedDomainName}`
161
162
 
162
163
  this.siteDomainNames = [this.siteExternalDomainName]
163
164
  }