0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-04 21:12:41 +00:00

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
parent 84bc3d0be2
commit 3787cdf11c

View File

@@ -283,13 +283,9 @@ const templateFn = require('./../client/template.js');
app.use((req, res)=>{ app.use((req, res)=>{
// Create configuration object // Create configuration object
const configuration = { const configuration = {
local : false, local : isLocalEnvironment,
environment : nodeEnv environment : nodeEnv
}; };
// Add local only items to configuration object
if(localEnvironments.includes(nodeEnv)){
configuration.local = true;
};
const props = { const props = {
version : require('./../package.json').version, version : require('./../package.json').version,
publicUrl : config.get('publicUrl') ?? '', publicUrl : config.get('publicUrl') ?? '',