mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 11:40:42 +00:00
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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user