1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-24 15:49:46 +02:00

fix: Handle WEBHOOKS env variable being unset (#785)

Closes #784
This commit is contained in:
Gavin Mogan 2024-06-11 23:59:36 -07:00 committed by GitHub
parent a963d85a66
commit 5fcea5d651
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,