@gradientedge/cdk-utils 8.70.0 → 8.71.0
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.
|
@@ -146,9 +146,10 @@ class SiteWithEcsBackend extends common_1.CommonConstruct {
|
|
|
146
146
|
*/
|
|
147
147
|
resolveSiteDomainNames() {
|
|
148
148
|
/* the internal domain name used by ELB */
|
|
149
|
-
this.siteInternalDomainName =
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
this.siteInternalDomainName =
|
|
150
|
+
this.isProductionStage() || this.props.skipStageForARecords
|
|
151
|
+
? `${this.props.siteSubDomain}-internal.${this.fullyQualifiedDomainName}`
|
|
152
|
+
: `${this.props.siteSubDomain}-internal-${this.props.stage}.${this.fullyQualifiedDomainName}`;
|
|
152
153
|
/* the external domain name exposed to CloudFront */
|
|
153
154
|
this.siteExternalDomainName =
|
|
154
155
|
this.isProductionStage() || this.props.skipStageForARecords
|
package/package.json
CHANGED
|
@@ -159,9 +159,10 @@ export class SiteWithEcsBackend extends CommonConstruct {
|
|
|
159
159
|
*/
|
|
160
160
|
protected resolveSiteDomainNames() {
|
|
161
161
|
/* the internal domain name used by ELB */
|
|
162
|
-
this.siteInternalDomainName =
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
this.siteInternalDomainName =
|
|
163
|
+
this.isProductionStage() || this.props.skipStageForARecords
|
|
164
|
+
? `${this.props.siteSubDomain}-internal.${this.fullyQualifiedDomainName}`
|
|
165
|
+
: `${this.props.siteSubDomain}-internal-${this.props.stage}.${this.fullyQualifiedDomainName}`
|
|
165
166
|
|
|
166
167
|
/* the external domain name exposed to CloudFront */
|
|
167
168
|
this.siteExternalDomainName =
|