Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 425 Bytes

get-notifications-mode.md

File metadata and controls

7 lines (5 loc) · 425 Bytes

getNotificationsMode()

const getNotificationsMode = require('@serverless/utils/telemetry');

Resolves notification mode based on SLS_NOTIFICATION_MODE environment variable setting. When that setting is not available, it returns NOTIFICATIONS_MODE_ON or NOTIFICATIONS_MODE_ONLY_OUTDATED_VERSION in cases where function is executed in context of CI environment as identified by ci-info library.