Skip to content

Commit 22b980a

Browse files
authored
fix: add missing website variable to ts sample infra code (#748)
1 parent d5b7622 commit 22b980a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

packages/infrastructure/samples/infrastructure/typescript/src/constructs/websites/website.ts.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class {{{websiteName}}} extends Construct {
4040
constructor(scope: Construct, id: string, props?: {{{websiteName}}}Props) {
4141
super(scope, id);
4242
43-
new StaticWebsite(this, id, {
43+
const website = new StaticWebsite(this, id, {
4444
websiteContentPath: "{{{websiteDistRelativePath}}}",
4545
runtimeOptions: {
4646
jsonPayload: {

packages/infrastructure/test/projects/typescript/__snapshots__/infrastructure-ts-project.test.ts.snap

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)