mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-09-14 03:25:43 -05:00
Exclude storage/archive
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user