feat(notification): add Resend quota gate and waiting-for-reset state

This commit is contained in:
shira committed 2026-10-06 11:50:38 +03:00
1 parent 3b917befa9
commit b856d4ff54
40 files changed
+4116 -48

No files matched your search

+9 -1
View File
@@ -30,9 +30,17 @@ EMAIL_PROVIDER=disabled
EMAIL_FROM=no-reply@example.com
# Label of the provider account (lowercase letters, digits, ".", "_", "-"),
# never the key. Every new delivery is pinned to EMAIL_PROVIDER and this
# label; change it whenever the key belongs to another provider account.
# label, and the mail quota is counted under it. Change it whenever the key
# belongs to another provider account, and only then: renaming the label of
# the same account resets the local quota count.
EMAIL_ACCOUNT=default
EMAIL_TIMEOUT=10s
# Recipients the configured provider account may be sent per UTC day and per
# UTC calendar month. Empty means the Resend Free plan limits, 100 and 3000,
# for resend and disabled; smtp requires both values. A used-up quota makes
# mail wait for the reset; nothing buys a plan or switches the transport.
EMAIL_QUOTA_DAILY=
EMAIL_QUOTA_MONTHLY=
# Public origin for links in mail: https, or http only for a loopback host.
APP_PUBLIC_URL=http://localhost:8080
# Read only when EMAIL_PROVIDER=resend, where it is required. Keep the real