Skip to main content
zerotal

Documentation


Documentation / @zerotal/notifications / validateNotificationConfig

Function: validateNotificationConfig()

validateNotificationConfig(config): void

Defined in: notifications/src/config.ts:63

Check the config for combinations that would only fail at send time.

A missing Resend key or an SMS driver without its credential block is a deployment mistake, and the cheapest place to notice one is here — at boot, naming the key — rather than on the first password-reset email of the day.

Parameters

config

NotificationConfigShape

Returns

void

Throws

on the first inconsistency found.