From 3787cdf11c516654eec88d78aaee96f5df6c44fe Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Wed, 13 Apr 2022 14:39:27 +1200 Subject: [PATCH] Update server/app.js Co-authored-by: Trevor Buckner --- server/app.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/server/app.js b/server/app.js index 3a40368ac..1e17424f2 100644 --- a/server/app.js +++ b/server/app.js @@ -283,13 +283,9 @@ const templateFn = require('./../client/template.js'); app.use((req, res)=>{ // Create configuration object const configuration = { - local : false, + local : isLocalEnvironment, environment : nodeEnv }; - // Add local only items to configuration object - if(localEnvironments.includes(nodeEnv)){ - configuration.local = true; - }; const props = { version : require('./../package.json').version, publicUrl : config.get('publicUrl') ?? '',