From 6fdd415fcbd9fd75e0e87d6bbe7baa89da68a675 Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Wed, 13 Apr 2022 14:37:06 +1200 Subject: [PATCH] Update server/app.js Co-authored-by: Trevor Buckner --- server/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app.js b/server/app.js index ae63cd029..4451e89b7 100644 --- a/server/app.js +++ b/server/app.js @@ -259,8 +259,8 @@ app.get('/print/:id', asyncHandler(async (req, res, next)=>{ return next(); })); -const localEnvironments = config.get('local_environments'); const nodeEnv = config.get('node_env'); +const isLocalEnvironment = config.get('local_environments').includes(nodeEnv); // Login app.post('/login', (req, res)=>{ // Local only