Closed levinelson closed 5 years ago
The next Craft CMS release will have a new disabledPlugins
config setting, which you can use to disable the Webhooks plugin entirely in Dev environments:
// -- config/general.php --
'dev' => [
'disabledPlugins' => ['webhooks'],
],
Alternatively, maybe the webhook payload could include the environment name? It would allow for deeper integrations (e.g. separate channels in Slack). In Zapier I'm not seeing it as an option.
@devinellis Can you post as a separate issue?
@brandonkelly I’ve just read the issue in the CMS repo about the problem that can occur when disabling plugins on an environment basis (https://github.com/craftcms/cms/issues/9576). It sounds like we need a better solution for disabling webhook calls.
@carlcs Yeah good point. Just released v2.4.1 with a new disableAllWebhooks
setting you can set to true
from config/webhooks.php
:
use craft\helpers\App;
return [
'disableAllWebhooks' => (bool)App::env('DISABLE_WEBHOOKS'),
// ...
];
Hi, love the plugin! It'd be awesome if there was an easy switch for disabling the web hooks while in dev mode, so I don't keep sending all sorts of test data to the web hook.