mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 14:12:40 +00:00
Update server/app.js
Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
This commit is contained in:
@@ -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') ?? '',
|
||||
|
||||
Reference in New Issue
Block a user