mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-23 00:40:23 +01:00
hotfixing bug where client-side config was incorrectly set up if port isn't being used
This commit is contained in:
2
app.js
2
app.js
@@ -157,7 +157,7 @@ fs.readFile(path.join(__dirname, 'config.json'), function(err, data) {
|
|||||||
address: base_url,
|
address: base_url,
|
||||||
port: port
|
port: port
|
||||||
},
|
},
|
||||||
api_url: base_url + ':' + port + '/api/'
|
api_url: base_url + (use_port ? ':' + port : '') + '/api/'
|
||||||
}, null, 4))
|
}, null, 4))
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user