serverless-plugin-revision
v0.5.6
Published
Revisioning plugin for Serverless. Adds a Revision header with the version from root package.json and latest git short commit hash
Downloads
3
Maintainers
Readme
Revisioning Plugin for Serverless
Applies an API-Revision
header to API Gateway responses that consists of the project/function package.json version and the latest short commit hash from HEAD.
###Installation
Depending on your Serverless version, install one of the following versions
| Serverless Version | Plugin Version | |--------------------|----------------| | 0.4 | 0.2.* | | 0.5 | 0.5.* |
Install the plugin in the root of your project:
npm install serverless-plugin-revision
Open the 's-project.json' in your Project's root folder and add the plugin to the plugins
property, like this:
"plugins": [
"serverless-plugin-revision"
]