From 43599f177040c2c6fbacef3b47185a55a6333d4a Mon Sep 17 00:00:00 2001 From: Jonathan Goldwasser Date: Tue, 6 Jan 2026 23:35:39 +0100 Subject: [PATCH] fix(static-website): invalid redirect code in CloudFront function --- src/static-website/index.ts | 3 ++- test/static-website/__snapshots__/static-website.test.ts.snap | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/static-website/index.ts b/src/static-website/index.ts index fb394ff4..06ace876 100644 --- a/src/static-website/index.ts +++ b/src/static-website/index.ts @@ -257,5 +257,6 @@ function redirectFunctionCode(domainName: string): string { value: 'https://${domainName}', }, }, -};`; + }; +}`; } diff --git a/test/static-website/__snapshots__/static-website.test.ts.snap b/test/static-website/__snapshots__/static-website.test.ts.snap index 1f97f811..d7ad3347 100644 --- a/test/static-website/__snapshots__/static-website.test.ts.snap +++ b/test/static-website/__snapshots__/static-website.test.ts.snap @@ -644,7 +644,8 @@ exports[`StaticWebsite 1`] = ` value: 'https://www.my-site.com', }, }, -};", + }; +}", "FunctionConfig": { "Comment": "eu-west-1StackStaticWebsiRedirectFunction172BEC3F", "Runtime": "cloudfront-js-2.0",