mirror of https://github.com/status-im/codimd.git
Merge pull request #1086 from SISheogorath/feature/urlWarning
Warn on missing serverURL
This commit is contained in:
commit
786140331b
|
@ -101,6 +101,10 @@ config.serverURL = (function getserverurl () {
|
|||
return url
|
||||
})()
|
||||
|
||||
if (config.serverURL === '') {
|
||||
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.')
|
||||
}
|
||||
|
||||
config.Environment = Environment
|
||||
|
||||
// auth method
|
||||
|
|
Loading…
Reference in New Issue