MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / checkQueuesEnabledInProd

Function checkQueuesEnabledInProd

apps/api/src/config/env/validate.ts:708–718  ·  view source on GitHub ↗
(env: Env)

Source from the content-addressed store, hash-verified

706 * "we sent it" toast for an email that never arrived.
707 */
708const 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.

Callers 1

checkInvariantsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected