-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to disable web hooks in dev mode #4
Comments
The next Craft CMS release will have a new // -- 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 (craftcms/cms#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 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.
The text was updated successfully, but these errors were encountered: