From dddb88581cb1b4eb5caac45373425bbc0ad17936 Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Mon, 7 Sep 2026 19:43:20 +1200 Subject: [PATCH 1/4] Set default value of `development` to false --- config/default.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/default.json b/config/default.json index e55903405..de8040109 100644 --- a/config/default.json +++ b/config/default.json @@ -1,5 +1,5 @@ { - "development": true, + "development": false, "host" : "homebrewery.local.naturalcrit.com:8000", "naturalcrit_url" : "local.naturalcrit.com:8010", "secret" : "secret", From cb8694139ef0b281a5a6e5c25c0d7161331e4b02 Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Mon, 7 Sep 2026 19:43:37 +1200 Subject: [PATCH 2/4] Add `development` to config object --- server/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/app.js b/server/app.js index b1e0e1c25..5cb844b86 100644 --- a/server/app.js +++ b/server/app.js @@ -561,7 +561,8 @@ export default async function createApp(vite) { publicUrl : config.get('publicUrl') ?? '', baseUrl : `${req.protocol}://${req.get('host')}`, environment : nodeEnv, - deployment : config.get('heroku_app_name') ?? '' + deployment : config.get('heroku_app_name') ?? '', + development : config.get('development') }; const props = { version : version, From ab0f2aab15e7707dd62c26e1458961db9a5ac8a0 Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Mon, 7 Sep 2026 19:45:58 +1200 Subject: [PATCH 3/4] Check for `development` property when setting background classes --- client/homebrew/homebrew.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/homebrew/homebrew.jsx b/client/homebrew/homebrew.jsx index 138b54f85..680d34cb5 100644 --- a/client/homebrew/homebrew.jsx +++ b/client/homebrew/homebrew.jsx @@ -61,7 +61,7 @@ const Homebrew = (props)=>{ if(brew.pureError) { return ( -
+
} /> @@ -73,7 +73,7 @@ const Homebrew = (props)=>{ return ( -
+
} /> } /> From 8dee6466fdadfe28afe28d1f26f6c20c3c0bdedd Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Wed, 23 Sep 2026 21:37:58 -0400 Subject: [PATCH 4/4] Rename to developmentStyle, and simplify logic --- client/homebrew/homebrew.jsx | 6 +++--- config/default.json | 2 +- server/app.js | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/client/homebrew/homebrew.jsx b/client/homebrew/homebrew.jsx index 680d34cb5..6db51bad5 100644 --- a/client/homebrew/homebrew.jsx +++ b/client/homebrew/homebrew.jsx @@ -47,7 +47,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}")` @@ -61,7 +61,7 @@ const Homebrew = (props)=>{ if(brew.pureError) { return ( -
+
} /> @@ -73,7 +73,7 @@ const Homebrew = (props)=>{ return ( -
+
} /> } /> diff --git a/config/default.json b/config/default.json index de8040109..37cb24f7d 100644 --- a/config/default.json +++ b/config/default.json @@ -1,5 +1,5 @@ { - "development": false, + "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 5cb844b86..90766a7a2 100644 --- a/server/app.js +++ b/server/app.js @@ -557,12 +557,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') ?? '', - development : config.get('development') + 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,