fix: Hide notification settings when SMTP_ configuration is unset

This commit is contained in:
Tom Moor
2021-10-14 21:55:48 -07:00
parent 4f34b69cfa
commit 26e2ae4bf1
3 changed files with 48 additions and 26 deletions

View File

@@ -17,6 +17,8 @@ export default function present(env: Object): Object {
SLACK_APP_ID: env.SLACK_APP_ID,
MAXIMUM_IMPORT_SIZE: env.MAXIMUM_IMPORT_SIZE || 1024 * 1000 * 5,
SUBDOMAINS_ENABLED: env.SUBDOMAINS_ENABLED === "true",
NOTIFICATIONS_ENABLED:
!!env.SMTP_USERNAME || env.NODE_ENV === "development",
GOOGLE_ANALYTICS_ID: env.GOOGLE_ANALYTICS_ID,
RELEASE: env.SOURCE_COMMIT || env.SOURCE_VERSION || undefined,
};