@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 =
|
|
151
|
-
|
|
152
|
-
|
|
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
|
@@ -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 =
|
|
159
|
-
|
|
160
|
-
|
|
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
|
}
|