From 8b91fac717d789e5795b58abb2772603a0fc0004 Mon Sep 17 00:00:00 2001 From: evanpelle Date: Thu, 15 May 2025 10:47:38 -0700 Subject: [PATCH] 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. --- src/core/configuration/PreprodConfig.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/configuration/PreprodConfig.ts b/src/core/configuration/PreprodConfig.ts index 227cccf94..78662578c 100644 --- a/src/core/configuration/PreprodConfig.ts +++ b/src/core/configuration/PreprodConfig.ts @@ -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";