Skip to content

Commit

Permalink
Allow a bref: section in serverless.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Oct 6, 2024
1 parent a4b7744 commit eabf7b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ class ServerlessPlugin {
this.checkCompatibleRuntime();

serverless.configSchemaHandler.schema.definitions.awsLambdaRuntime.enum.push(...this.runtimes);
serverless.configSchemaHandler.defineTopLevelProperty('bref', {
type: 'object',
});

// Declare `${bref:xxx}` variables
// See https://www.serverless.com/framework/docs/guides/plugins/custom-variables
Expand Down

0 comments on commit eabf7b6

Please sign in to comment.