@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.mjs CHANGED
@@ -1725,7 +1725,9 @@ var _StaticHosting = class _StaticHosting extends Construct8 {
1725
1725
  "config-json-rewrite-function",
1726
1726
  {
1727
1727
  functionName: `static-hosting-config-json-rewrite-${branchHash}`,
1728
- 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.",
1728
+ // CloudFront caps `Comment` at 128 chars; the full rationale is in
1729
+ // the preceding code comment.
1730
+ comment: "Rewrites /config.json to the runtime-config path; copies Host into x-viewer-host.",
1729
1731
  code: FunctionCode.fromInline(
1730
1732
  [
1731
1733
  "function handler(event) {",
@@ -1745,7 +1747,9 @@ var _StaticHosting = class _StaticHosting extends Construct8 {
1745
1747
  "host-copy-function",
1746
1748
  {
1747
1749
  functionName: `static-hosting-host-copy-${branchHash}`,
1748
- 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).",
1750
+ // CloudFront caps `Comment` at 128 chars; the full rationale is in
1751
+ // the preceding code comment.
1752
+ comment: "Copies viewer Host into x-viewer-host for the origin-request Lambda@Edge.",
1749
1753
  code: FunctionCode.fromInline(
1750
1754
  [
1751
1755
  "function handler(event) {",