Skip to content

Commit c8bf5ff

Browse files
author
Elad Ben-Israel
authored
fix: update static site example after breaking changes
2 parents e7b755c + 2f54018 commit c8bf5ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typescript/static-site/static-site.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class StaticSite extends Construct {
7676

7777
// Deploy site contents to S3 bucket
7878
new s3deploy.BucketDeployment(this, 'DeployWithInvalidation', {
79-
source: s3deploy.Source.asset('./site-contents'),
79+
sources: [ s3deploy.Source.asset('./site-contents') ],
8080
destinationBucket: siteBucket,
8181
distribution,
8282
distributionPaths: ['/*'],

0 commit comments

Comments
 (0)