fix: view profile on U39.1+ #2709

Merged
Sainan merged 1 commits from 39.1-profile into main 2025-08-27 13:06:37 -07:00
2 changed files with 5 additions and 6 deletions

View File

@ -13,8 +13,6 @@ import { payRouter } from "./routes/pay.ts";
import { statsRouter } from "./routes/stats.ts";
import { webuiRouter } from "./routes/webui.ts";
import { worldStateController } from "./controllers/dynamic/worldStateController.ts";
const app = express();
app.use((req, _res, next) => {
@ -47,9 +45,6 @@ app.use("/pay", payRouter);
app.use("/stats", statsRouter);
app.use("/", webuiRouter);
// U39.1+ gets worldState from that location
app.get("/worldState.php", worldStateController);
app.use(unknownEndpointHandler);
app.use(errorHandler);

View File

@ -140,7 +140,11 @@ const createLoginResponse = (
resp.MatchmakingBuildId = buildConfig.matchmakingBuildId;
}
if (version_compare(buildLabel, "2023.04.25.23.40") >= 0) {
resp.platformCDNs = [`${myUrlBase}/`];
if (version_compare(buildLabel, "2025.08.26.09.49") >= 0) {
resp.platformCDNs = [`${myUrlBase}/dynamic/`];
} else {
resp.platformCDNs = [`${myUrlBase}/`];
}
}
return resp;
};