Skip to content

Commit

Permalink
Merge pull request #1868 from brefphp/bref-section
Browse files Browse the repository at this point in the history
Allow a `bref:` section in serverless.yml
  • Loading branch information
mnapoli authored Oct 6, 2024
2 parents 62a6391 + eabf7b6 commit d116ed4
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 d116ed4

Please sign in to comment.