diff --git a/client/homebrew/homebrew.jsx b/client/homebrew/homebrew.jsx index 716291764..1ee5efa2a 100644 --- a/client/homebrew/homebrew.jsx +++ b/client/homebrew/homebrew.jsx @@ -46,7 +46,7 @@ const Homebrew = (props)=>{ global.enablev4 = enablev4; const backgroundObject = ()=>{ - if(config?.deployment || (config?.local && config?.development)) { + if(config?.deployment || config?.developmentStyle) { const bgText = config?.deployment || 'Local'; return { backgroundImage : `url("data:image/svg+xml;utf8,${bgText}")` @@ -60,7 +60,7 @@ const Homebrew = (props)=>{ if(brew.pureError) { return ( -
+
} /> @@ -72,7 +72,7 @@ const Homebrew = (props)=>{ return ( -
+
} /> } /> diff --git a/config/default.json b/config/default.json index e55903405..37cb24f7d 100644 --- a/config/default.json +++ b/config/default.json @@ -1,5 +1,5 @@ { - "development": true, + "development_style": false, "host" : "homebrewery.local.naturalcrit.com:8000", "naturalcrit_url" : "local.naturalcrit.com:8010", "secret" : "secret", diff --git a/server/app.js b/server/app.js index 49767c09d..dfcd96ec6 100644 --- a/server/app.js +++ b/server/app.js @@ -245,11 +245,12 @@ export default async function createApp(vite) { // Create configuration object const configuration = { - local : isLocalEnvironment, - publicUrl : config.get('publicUrl') ?? '', - baseUrl : `${req.protocol}://${req.get('host')}`, - environment : nodeEnv, - deployment : config.get('heroku_app_name') ?? '' + local : isLocalEnvironment, + publicUrl : config.get('publicUrl') ?? '', + baseUrl : `${req.protocol}://${req.get('host')}`, + environment : nodeEnv, + deployment : config.get('heroku_app_name') ?? '', + developmentStyle : config.get('development_style') }; const props = { version : version,