diff --git a/src/config/load.ts b/src/config/load.ts index 7a4323817f..50ae47d9e2 100644 --- a/src/config/load.ts +++ b/src/config/load.ts @@ -29,6 +29,8 @@ export default function load() { config.url = normalizeUrl(config.url); + config.port = config.port || parseInt(process.env.PORT, 10); + mixin.host = url.host; mixin.hostname = url.hostname; mixin.scheme = url.protocol.replace(/:$/, '');