From 5fcea5d6518ab64e5070b49f70b694fbfce1bcdb Mon Sep 17 00:00:00 2001 From: Gavin Mogan Date: Tue, 11 Jun 2024 23:59:36 -0700 Subject: [PATCH] fix: Handle WEBHOOKS env variable being unset (#785) Closes #784 --- server/config/custom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/config/custom.js b/server/config/custom.js index 45609fd53..8e5e0962f 100644 --- a/server/config/custom.js +++ b/server/config/custom.js @@ -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,