Skip to content

Commit 9a3987b

Browse files
alanorthgithub-actions[bot]
authored andcommitted
server.ts: remove invalid host fallback
If `environment.ui.host` is Falsy, then we attempt to fall back to a host value of '/', which is invalid. I think that, if a user has messed up their config so much that defaults in our configuration interface don't work, then we should actually fail here. (cherry picked from commit f622d58)
1 parent 7a00a00 commit 9a3987b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ function createHttpsServer(keys) {
561561
*/
562562
function run() {
563563
const port = environment.ui.port || 4000;
564-
const host = environment.ui.host || '/';
564+
const host = environment.ui.host;
565565

566566
// Start up the Node server
567567
const server = app();

0 commit comments

Comments
 (0)