From e613ea5816f96235aed86e53f4dd7d6053e2b305 Mon Sep 17 00:00:00 2001 From: keyan Date: Fri, 28 Jan 2022 12:58:38 -0600 Subject: [PATCH] check for dev env --- api/search/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/search/index.js b/api/search/index.js index 0d1544cf..a051579b 100644 --- a/api/search/index.js +++ b/api/search/index.js @@ -1,7 +1,7 @@ const os = require('@opensearch-project/opensearch') global.os = global.os || new os.Client( - process.env.NODE_ENV === 'production' + process.env.NODE_ENV !== 'development' ? { node: process.env.OPENSEARCH_URL, auth: {