@openhi/constructs 0.0.134 → 0.0.135

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.js CHANGED
@@ -2550,7 +2550,9 @@ var _StaticHosting = class _StaticHosting extends import_constructs8.Construct {
2550
2550
  "config-json-rewrite-function",
2551
2551
  {
2552
2552
  functionName: `static-hosting-config-json-rewrite-${branchHash}`,
2553
- comment: "Copies Host into x-viewer-host and rewrites /config.json to the configured runtime-config path so the SPA can bootstrap same-origin against its own per-PR REST API.",
2553
+ // CloudFront caps `Comment` at 128 chars; the full rationale is in
2554
+ // the preceding code comment.
2555
+ comment: "Rewrites /config.json to the runtime-config path; copies Host into x-viewer-host.",
2554
2556
  code: import_aws_cloudfront.FunctionCode.fromInline(
2555
2557
  [
2556
2558
  "function handler(event) {",
@@ -2570,7 +2572,9 @@ var _StaticHosting = class _StaticHosting extends import_constructs8.Construct {
2570
2572
  "host-copy-function",
2571
2573
  {
2572
2574
  functionName: `static-hosting-host-copy-${branchHash}`,
2573
- comment: "Copies Host into x-viewer-host so the origin-request Lambda@Edge can pick the matching per-PR API origin (Host is stripped by ALL_VIEWER_EXCEPT_HOST_HEADER before reaching the origin-request stage).",
2575
+ // CloudFront caps `Comment` at 128 chars; the full rationale is in
2576
+ // the preceding code comment.
2577
+ comment: "Copies viewer Host into x-viewer-host for the origin-request Lambda@Edge.",
2574
2578
  code: import_aws_cloudfront.FunctionCode.fromInline(
2575
2579
  [
2576
2580
  "function handler(event) {",