| 771 | |
| 772 | const 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) { |