Skip to content

Commit 1bf4a44

Browse files
Christopher Griggkaiz-io
Christopher Grigg
andauthored
feat: add path and dirname to s3 deploy asset (#913)
Co-authored-by: Michael Kaiser <[email protected]>
1 parent 554dad4 commit 1bf4a44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typescript/static-site/static-site.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class StaticSite extends Construct {
102102

103103
// Deploy site contents to S3 bucket
104104
new s3deploy.BucketDeployment(this, 'DeployWithInvalidation', {
105-
sources: [s3deploy.Source.asset('./site-contents')],
105+
sources: [s3deploy.Source.asset(path.join(__dirname, './site-contents'))],
106106
destinationBucket: siteBucket,
107107
distribution,
108108
distributionPaths: ['/*'],

0 commit comments

Comments
 (0)