Skip to content

Commit 7861403

Browse files
authored
Merge pull request #1086 from SISheogorath/feature/urlWarning
Warn on missing serverURL
2 parents b749d50 + a4941be commit 7861403

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/config/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ config.serverURL = (function getserverurl () {
101101
return url
102102
})()
103103

104+
if (config.serverURL === '') {
105+
logger.warn('Neither \'domain\' nor \'CMD_DOMAIN\' is configured. This can cause issues with various components.\nHint: Make sure \'protocolUseSSL\' and \'urlAddPort\' or \'CMD_PROTOCOL_USESSL\' and \'CMD_URL_ADDPORT\' are configured properly.')
106+
}
107+
104108
config.Environment = Environment
105109

106110
// auth method

0 commit comments

Comments
 (0)