Skip to content

Commit

Permalink
Add publicUrl to default.json
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Ambatte committed Apr 13, 2022
1 parent 42878ea commit f8086a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"naturalcrit_url" : "local.naturalcrit.com:8010",
"secret" : "secret",
"web_port" : 8000,
"enable_v3" : true
"enable_v3" : true,
"publicUrl" : "https://homebrewery.naturalcrit.com"
}
2 changes: 1 addition & 1 deletion server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ const templateFn = require('./../client/template.js');
app.use((req, res)=>{
const props = {
version : require('./../package.json').version,
publicUrl : config.get('publicUrl') ?? 'https://homebrewery.naturalcrit.com',
publicUrl : config.get('publicUrl'),
url : req.originalUrl,
brew : req.brew,
brews : req.brews,
Expand Down

0 comments on commit f8086a0

Please sign in to comment.