summary refs log tree commit diff
path: root/api
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-18 17:38:31 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-18 17:38:31 +0200
commit45efdb7ce488f160c961e881d2ae3e598426d7f8 (patch)
tree6fdda55c144d2c768618fcccb2579ca89d26e1c1 /api
parentRevert "fix: make the CDN build correctly" (diff)
downloadserver-45efdb7ce488f160c961e881d2ae3e598426d7f8.tar.xz
:zap: vertically scale bundle
Diffstat (limited to 'api')
-rw-r--r--api/src/start.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/start.ts b/api/src/start.ts
index d799c190..717e1b8f 100644
--- a/api/src/start.ts
+++ b/api/src/start.ts
@@ -7,7 +7,7 @@ config();
 import { FosscordServer } from "./Server";
 import cluster from "cluster";
 import os from "os";
-const cores = Number(process.env.threads) || os.cpus().length;
+const cores = Number(process.env.THREADS) || os.cpus().length;
 
 if (cluster.isMaster && process.env.NODE_ENV == "production") {
 	console.log(`Primary ${process.pid} is running`);