Exclude storage/archive
Some checks are pending
Deploy / deploy-frontend (push) Waiting to run
Deploy / deploy-backend (push) Waiting to run

This commit is contained in:
Matt Isenhower
2024-11-20 23:50:55 -08:00
parent 7d4b9cc038
commit a134856713

View File

@@ -12,7 +12,9 @@ export default class S3Syncer
this.syncClient.sync(this.publicBucket, `${this.localPath}/dist`, {
filters: this.filters,
}),
this.syncClient.sync(this.privateBucket, `${this.localPath}/storage`),
this.syncClient.sync(this.privateBucket, `${this.localPath}/storage`, {
filters: this.privateFilters
}),
]);
}
@@ -30,7 +32,9 @@ export default class S3Syncer
: undefined,
}),
}),
this.syncClient.sync(`${this.localPath}/storage`, this.privateBucket),
this.syncClient.sync(`${this.localPath}/storage`, this.privateBucket, {
filters: this.privateFilters,
}),
]);
}
@@ -72,6 +76,12 @@ export default class S3Syncer
];
}
get privateFilters() {
return [
{ exclude: (key) => key.startsWith('archive/') },
];
}
log(message) {
console.log(`[S3] ${message}`);
}