diff --git a/ExpressAPI/src/app.ts b/ExpressAPI/src/app.ts index 938043eccf882fe6b17e880e6eba87783060e8f0..df00fc016ff4c7aec464205722bd28b5dbcded96 100644 --- a/ExpressAPI/src/app.ts +++ b/ExpressAPI/src/app.ts @@ -1,6 +1,5 @@ -// Read from the .env file -// ATTENTION : This line MUST be the first of this file -require('dotenv').config(); +require('dotenv').config(); // ATTENTION : This line MUST be the first of this file +require('./shared/helpers/TypeScriptExtensions'); // ATTENTION : This line MUST be the second of this file import WorkerRole from './process/WorkerRole'; import ClusterManager from './process/ClusterManager'; @@ -10,6 +9,7 @@ import HttpManager from './managers/HttpManager'; HttpManager.registerAxiosInterceptor(); + (new ClusterManager([ { role : WorkerRole.API, quantity : ClusterManager.CORES,