Handle WEBHOOKS env variable being unset

Fixes #784 by defining it to be an empty array so it properly parses/sets to config.
pull/785/head
Gavin Mogan 2 years ago committed by GitHub
parent a963d85a66
commit fa457f16c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -60,7 +60,7 @@ module.exports.custom = {
smtpPassword: process.env.SMTP_PASSWORD,
smtpFrom: process.env.SMTP_FROM,
webhooks: JSON.parse(process.env.WEBHOOKS), // TODO: validate structure
webhooks: JSON.parse(process.env.WEBHOOKS || '[]'), // TODO: validate structure
slackBotToken: process.env.SLACK_BOT_TOKEN,
slackChannelId: process.env.SLACK_CHANNEL_ID,

Loading…
Cancel
Save