[Attempt 1] fix slow website
Some checks failed
Queue Release Build / prepare (push) Successful in 25s
Deploy Web Apps / deploy (push) Successful in 17m20s
Queue Release Build / finalize (push) Has been cancelled
Queue Release Build / build-linux (push) Has started running
Queue Release Build / build-windows (push) Has been cancelled
Some checks failed
Queue Release Build / prepare (push) Successful in 25s
Deploy Web Apps / deploy (push) Successful in 17m20s
Queue Release Build / finalize (push) Has been cancelled
Queue Release Build / build-linux (push) Has started running
Queue Release Build / build-windows (push) Has been cancelled
This commit is contained in:
@@ -246,15 +246,6 @@ export class ReleaseService {
|
||||
}
|
||||
|
||||
private getReleaseEndpoints(): string[] {
|
||||
if (!isPlatformBrowser(this.platformId)) {
|
||||
return [PROXY_RELEASES_API_URL, DIRECT_RELEASES_API_URL];
|
||||
}
|
||||
|
||||
const hostname = window.location.hostname;
|
||||
const isLocalHost = hostname === 'localhost' || hostname === '127.0.0.1';
|
||||
|
||||
return isLocalHost
|
||||
? [PROXY_RELEASES_API_URL, DIRECT_RELEASES_API_URL]
|
||||
: [DIRECT_RELEASES_API_URL, PROXY_RELEASES_API_URL];
|
||||
return [PROXY_RELEASES_API_URL, DIRECT_RELEASES_API_URL];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user