File tree 1 file changed +9
-1
lines changed
dashboard/new-dashboard/src/configurators
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,15 @@ import { dbTypeStore } from "../shared/dbTypes"
5
5
import { injectOrError , serverUrlObservableKey } from "../shared/injectionKeys"
6
6
7
7
export class ServerWithCompressConfigurator implements ServerConfigurator {
8
- static readonly DEFAULT_SERVER_URL = "https://ij-perf.labs.jb.gg"
8
+ static getDefaultServerUrl ( ) : string {
9
+ const hostname = window . location . hostname
10
+ if ( hostname === "ij-perf-api.labs.jb.gg" || hostname === "localhost" ) {
11
+ return "https://ij-perf-api.labs.jb.gg"
12
+ }
13
+ return "https://ij-perf.labs.jb.gg"
14
+ }
15
+
16
+ static readonly DEFAULT_SERVER_URL = ServerWithCompressConfigurator . getDefaultServerUrl ( )
9
17
10
18
private readonly observable : Observable < null >
11
19
private _serverUrl : string = ServerWithCompressConfigurator . DEFAULT_SERVER_URL
You can’t perform that action at this time.
0 commit comments