1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Enable multiserver in development environments

This commit is contained in:
Bill Thornton 2021-09-30 10:58:17 -04:00
parent a70c83de3c
commit fda52baed5

View file

@ -72,7 +72,9 @@ export function getIncludeCorsCredentials() {
export function getMultiServer() { export function getMultiServer() {
return getConfig().then(config => { return getConfig().then(config => {
return !!config.multiserver; // Enable multi-server support in development environments
return process.env.NODE_ENV === 'development' // eslint-disable-line no-undef
|| !!config.multiserver;
}).catch(error => { }).catch(error => {
console.log('cannot get web config:', error); console.log('cannot get web config:', error);
return false; return false;