File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,9 @@ export abstract class DefaultServerConfig implements ServerConfig {
206
206
return 3001 + index ;
207
207
}
208
208
replayFallbackUrl ( gameId : GameID ) : string {
209
- return `https://api.openfront.io/game/${ gameId } ` ;
209
+ const url = new URL ( this . jwtIssuer ( ) ) ;
210
+ url . pathname = `/game/${ gameId } ` ;
211
+ return url . toString ( ) ;
210
212
}
211
213
}
212
214
Original file line number Diff line number Diff line change 1
1
import { UnitInfo , UnitType } from "../game/Game" ;
2
2
import { UserSettings } from "../game/UserSettings" ;
3
- import { GameConfig } from "../Schemas" ;
3
+ import { GameConfig , GameID } from "../Schemas" ;
4
4
import { GameEnv , ServerConfig } from "./Config" ;
5
5
import { DefaultConfig , DefaultServerConfig } from "./DefaultConfig" ;
6
6
@@ -42,6 +42,10 @@ export class DevServerConfig extends DefaultServerConfig {
42
42
subdomain ( ) : string {
43
43
return "" ;
44
44
}
45
+
46
+ replayFallbackUrl ( gameId : GameID ) : string {
47
+ return `https://api.openfront.io/game/${ gameId } ` ;
48
+ }
45
49
}
46
50
47
51
export class DevConfig extends DefaultConfig {
You can’t perform that action at this time.
0 commit comments