Skip to content

Commit

Permalink
Fix Bref plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Jan 15, 2021
1 parent 06899f3 commit f813801
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class ServerlessPlugin {
}

// Check if bref custom directive is set, otherwise initialize it with empty object
this.serverless.service.custom = this.serverless.service.custom ? this.serverless.service.custom : {};
this.serverless.service.custom.bref = this.serverless.service.custom.bref ? this.serverless.service.custom.bref : {};

this.hooks = {
Expand Down

0 comments on commit f813801

Please sign in to comment.