WS_URL override takes precedence (#566)

This commit is contained in:
Jaco Greeff 2019-01-08 16:45:03 +01:00 committed by GitHub
parent b5774378f7
commit 501de3c9fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,9 +35,7 @@ function App (props: Props) {
);
}
const url = !settings.apiUrl
? undefined
: settings.apiUrl;
const url = process.env.WS_URL || settings.apiUrl || undefined;
console.log('Web socket url=', url);