Repair uploads and let the console follow any registered server

This commit is contained in:
Aryan Singh committed 2026-10-16 20:34:12 -05:00
1 parent 3e24d4a7bb
commit 683cdc4016
15 files changed
+193 -84

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
import { env } from "./env";
import { readNetwork, profileById } from "./network-config";
import { serverName } from "./network-render";
/** Resolve registered targets only; never accept a Docker name from a client. */
export function consoleTarget(id: string | null) {
if (!id || id === "primary") return env.mcContainer;
return serverName(profileById(readNetwork(), id).id);
}