(env: Env)
| 706 | * "we sent it" toast for an email that never arrived. |
| 707 | */ |
| 708 | const checkQueuesEnabledInProd = (env: Env): string[] => { |
| 709 | if (env.NODE_ENV !== "production") { |
| 710 | return []; |
| 711 | } |
| 712 | |
| 713 | return env.QUEUES_ENABLED |
| 714 | ? [] |
| 715 | : [ |
| 716 | "QUEUES_ENABLED must be true in production so transactional email retries on transient failure", |
| 717 | ]; |
| 718 | }; |
| 719 | |
| 720 | /** |
| 721 | * Production must back the cache with Valkey when caching is enabled. |