From 68e6967cee59f9af3b18812b416b1f1b5e04aa8c Mon Sep 17 00:00:00 2001 From: Lars Hampe Date: Tue, 5 Nov 2024 16:02:40 +0100 Subject: [PATCH] ci: use redis credentials only on prod env --- apps/api/src/utils/redis.ts | 2 +- docker-compose.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/src/utils/redis.ts b/apps/api/src/utils/redis.ts index 4aaf27b..a7724a2 100644 --- a/apps/api/src/utils/redis.ts +++ b/apps/api/src/utils/redis.ts @@ -1,7 +1,7 @@ import { createClient } from 'redis' const getRedisOptions = () => { - if (import.meta.env.NODE_ENV !== 'production') { + if (import.meta.env.NODE_ENV === 'production') { return { password: import.meta.env.REDIS_PASSWORD, url: import.meta.env.REDIS_URL, diff --git a/docker-compose.yaml b/docker-compose.yaml index e763897..96b9088 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -15,7 +15,7 @@ services: restart: always ports: - '6379:6379' - command: redis-server --save 20 1 --loglevel warning --requirepass development + # command: redis-server --save 20 1 --loglevel warning --requirepass development loki: image: grafana/loki:latest