Skip to content

Commit

Permalink
Asset path must be either a .zip file or a directory
Browse files Browse the repository at this point in the history
  • Loading branch information
unstubbable committed Mar 15, 2024
1 parent cf3f6dd commit c3ae586
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions cdk/main-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,9 @@ export class MainStack extends cdk.Stack {
new cdk.aws_s3_deployment.BucketDeployment(this, `assets-deployment-root`, {
destinationBucket: bucket,
sources: [
cdk.aws_s3_deployment.Source.asset(
path.join(distDirname, `static/favicon.ico`),
),
cdk.aws_s3_deployment.Source.asset(
path.join(distDirname, `static/robots.txt`),
),
cdk.aws_s3_deployment.Source.asset(path.join(distDirname, `static`), {
exclude: [`client/*`],
}),
],
distribution,
distributionPaths: [`/favicon.ico`, `/robots.txt`],
Expand Down

0 comments on commit c3ae586

Please sign in to comment.