Skip to content

Commit

Permalink
fix(cdk-site-distribution): cache invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsdaniels committed Jul 4, 2024
1 parent 85aaf16 commit 58b894d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/moody-ears-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@codedazur/cdk-site-distribution": patch
---

Cache invalidation is now triggered correctly.
2 changes: 1 addition & 1 deletion apps/infrastructure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test": "jest --passWithNoTests",
"synth": "cdk synth",
"diff": "cdk diff",
"deploy": "cdk deploy --all --require-approval never",
"deploy": "cdk deploy --all --concurrency 2 --require-approval never",
"destroy": "cdk destroy --all --force"
},
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class SiteDistribution extends Construct {
this.distribution = this.createDistribution();
this.alias = this.createAlias();

if (!(props.invalidateCache ?? true)) {
if (props.invalidateCache ?? true) {
this.cacheInvalidator = this.createCacheInvalidator();
}
}
Expand Down

0 comments on commit 58b894d

Please sign in to comment.