Skip to content

Commit f622d58

Browse files
committed
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.
1 parent 67a17e4 commit f622d58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.ts

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

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

0 commit comments

Comments
 (0)