@openhi/constructs 0.0.124 → 0.0.126
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.
- package/lib/index.d.mts +11 -1
- package/lib/index.d.ts +11 -1
- package/lib/index.js +23 -0
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +23 -0
- package/lib/index.mjs.map +1 -1
- package/package.json +3 -3
package/lib/index.mjs
CHANGED
|
@@ -1546,6 +1546,14 @@ import { Bucket as Bucket2 } from "aws-cdk-lib/aws-s3";
|
|
|
1546
1546
|
import { Construct as Construct9 } from "constructs";
|
|
1547
1547
|
var STATIC_HOSTING_SERVICE_TYPE = "website";
|
|
1548
1548
|
var _StaticHosting = class _StaticHosting extends Construct9 {
|
|
1549
|
+
/**
|
|
1550
|
+
* Returns true when `domainName` begins with a wildcard label (`*.`),
|
|
1551
|
+
* indicating it is an alt-name on the CloudFront cert but cannot be
|
|
1552
|
+
* created as a Route53 ARecord.
|
|
1553
|
+
*/
|
|
1554
|
+
static isWildcardDomain(domainName) {
|
|
1555
|
+
return domainName.startsWith("*.");
|
|
1556
|
+
}
|
|
1549
1557
|
constructor(scope, id, props = {}) {
|
|
1550
1558
|
super(scope, id);
|
|
1551
1559
|
const stack = OpenHiService.of(scope);
|
|
@@ -1632,6 +1640,9 @@ var _StaticHosting = class _StaticHosting extends Construct9 {
|
|
|
1632
1640
|
});
|
|
1633
1641
|
if (hasCustomDomain) {
|
|
1634
1642
|
props.domainNames.forEach((domainName, index) => {
|
|
1643
|
+
if (_StaticHosting.isWildcardDomain(domainName)) {
|
|
1644
|
+
return;
|
|
1645
|
+
}
|
|
1635
1646
|
new ARecord(this, `dns-record-${index}`, {
|
|
1636
1647
|
zone: props.hostedZone,
|
|
1637
1648
|
recordName: domainName,
|
|
@@ -2959,6 +2970,18 @@ var _OpenHiRestApiService = class _OpenHiRestApiService extends OpenHiService {
|
|
|
2959
2970
|
integration: optionsIntegration,
|
|
2960
2971
|
authorizer: noAuth
|
|
2961
2972
|
});
|
|
2973
|
+
new HttpRoute(this, "runtime-config-get-route", {
|
|
2974
|
+
httpApi: this.rootHttpApi,
|
|
2975
|
+
routeKey: HttpRouteKey.with("/control/runtime-config", HttpMethod.GET),
|
|
2976
|
+
integration,
|
|
2977
|
+
authorizer: noAuth
|
|
2978
|
+
});
|
|
2979
|
+
new HttpRoute(this, "runtime-config-head-route", {
|
|
2980
|
+
httpApi: this.rootHttpApi,
|
|
2981
|
+
routeKey: HttpRouteKey.with("/control/runtime-config", HttpMethod.HEAD),
|
|
2982
|
+
integration,
|
|
2983
|
+
authorizer: noAuth
|
|
2984
|
+
});
|
|
2962
2985
|
new HttpRoute(this, "proxy-route-root", {
|
|
2963
2986
|
httpApi: this.rootHttpApi,
|
|
2964
2987
|
routeKey: HttpRouteKey.with("/", HttpMethod.ANY),
|