From 8203ee50203ac0aadad6322f6867836200d2a19a Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Mon, 28 Mar 2022 14:09:00 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Updated=20REDIS=5FURI=20process?= =?UTF-8?q?=20env=20in=20service=20broker=20conf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- moleculer.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moleculer.config.ts b/moleculer.config.ts index e4576a7..83a3f41 100644 --- a/moleculer.config.ts +++ b/moleculer.config.ts @@ -64,7 +64,7 @@ const brokerConfig: BrokerOptions = { // More info: https://moleculer.services/docs/0.14/networking.html // Note: During the development, you don't need to define it because all services will be loaded locally. // In production you can set it via `TRANSPORTER=nats://localhost:4222` environment variable. - transporter: "redis://localhost:6379", // "NATS" + transporter: process.env.REDIS_URI || "redis://localhost:6379", // "NATS" // Define a cacher. // More info: https://moleculer.services/docs/0.14/caching.html