mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Skip loading config for multiserver when served by webpack
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
parent
7b797aff43
commit
6ce7bf8458
1 changed files with 5 additions and 4 deletions
|
@ -71,11 +71,12 @@ export function getIncludeCorsCredentials() {
|
|||
}
|
||||
|
||||
export function getMultiServer() {
|
||||
// Enable multi-server support when served by webpack
|
||||
if (__WEBPACK_SERVE__) { // eslint-disable-line no-undef
|
||||
return Promise.resolve(true);
|
||||
}
|
||||
|
||||
return getConfig().then(config => {
|
||||
// Enable multi-server support when served by webpack
|
||||
if (__WEBPACK_SERVE__) { // eslint-disable-line no-undef
|
||||
return true;
|
||||
}
|
||||
return !!config.multiserver;
|
||||
}).catch(error => {
|
||||
console.log('cannot get web config:', error);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue