bugfix: numWorkers() is called by the client, which does not have access to env variables, causing 'ReferenceError: process is not defined'. Long term solution, the client should not need to know how many workers there are.

This commit is contained in:
evanpelle
2025-05-15 10:47:38 -07:00
parent 2efc7d00fb
commit 8b91fac717
+1 -4
View File
@@ -6,10 +6,7 @@ export const preprodConfig = new (class extends DefaultServerConfig {
return GameEnv.Preprod;
}
numWorkers(): number {
if (process.env.SUBDOMAIN !== "main") {
return 2;
}
return 3;
return 2;
}
jwtAudience(): string {
return "openfront.dev";