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

Function checkWebPushVapid

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

Source from the content-addressed store, hash-verified

771
772const checkValkeyPassword = (env: Env): string[] => {
773 if (env.NODE_ENV !== "production" || env.VALKEY_PASSWORD !== "") {
774 return [];
775 }
776
777 const errors: string[] = [];
778
779 if (env.QUEUES_ENABLED) {
780 errors.push(
781 "VALKEY_PASSWORD required in production when QUEUES_ENABLED=true"
782 );
783 }
784
785 if (env.CACHE_ENABLED && env.CACHE_PROVIDER === "valkey") {
786 errors.push(
787 "VALKEY_PASSWORD required in production when CACHE_PROVIDER=valkey"
788 );
789 }
790
791 if (env.NOTIFICATIONS_SSE_ENABLED) {

Callers 1

checkInvariantsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected