Skip to content

Commit

Permalink
fix: Handle WEBHOOKS env variable being unset (#785)
Browse files Browse the repository at this point in the history
Closes #784
  • Loading branch information
halkeye authored Jun 12, 2024
1 parent a963d85 commit 5fcea5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/config/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5fcea5d

Please sign in to comment.