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:
parent
a70c83de3c
commit
fda52baed5
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue