@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 +6 -2
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +6 -2
- package/lib/index.mjs.map +1 -1
- package/package.json +3 -3
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
|
-
|
|
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
|
-
|
|
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) {",
|