Update server/app.js

Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
This commit is contained in:
G.Ambatte
2022-04-13 14:39:27 +12:00
committed by GitHub
co-authored by Trevor Buckner
parent 84bc3d0be2
commit 3787cdf11c
+1 -5
View File
@@ -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') ?? '',