Skip to content

Commit

Permalink
support bucketNameKey in syncMetadata
Browse files Browse the repository at this point in the history
I get an error when deploying with the new bucketNameKey feature.  this fixes it.
  • Loading branch information
chichicuervo authored Feb 11, 2020
1 parent d424ac4 commit 5bb4359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class ServerlessS3Sync {
if (s.hasOwnProperty('acl')) {
acl = s.acl;
}
if (!s.bucketName || !s.localDir) {
if ((!s.bucketName && !s.bucketNameKey) || !s.localDir) {
throw 'Invalid custom.s3Sync';
}
const localDir = path.join(servicePath, s.localDir);
Expand Down

0 comments on commit 5bb4359

Please sign in to comment.