This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
netlify-deployment-hours-plugin with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
A Netlify build plugin that blocks deployment if it is outside of deployment hours.
To install, add the following lines to your
[[plugins]] package = "netlify-deployment-hours-plugin"
[[plugins]] line is required for each plugin, even if you have other
plugins in your
netlify.toml file already.
There are two
inputs used to configure this plugin:
[[plugins]] package = "netlify-deployment-hours-plugin" [plugins.inputs] # A cron-like expression that expresses when a deployment can occur expression = "* * * * *" # tz database value that expresses the timezone of the expression timezone = "America/Toronto"
inputs can be overridden with environment variables for scenarios where
emergency deploys were required outside of regular deployment hours:
* `DEPLOYMENT_HOURS_EXPRESSION` * `DEPLOYMENT_HOURS_TIMEZONE`