fix: ensure the ATG will start from its saved status
[e-mobility-charging-stations-simulator.git] / src / utils / Configuration.ts
index 0c5a356ac18cd35a0e9e201b3f910bed3f6ce5b2..53eb720ffdf6f467295406f6a3a47ab3ec51d18d 100644 (file)
@@ -1,5 +1,6 @@
 import { type FSWatcher, readFileSync, watch } from 'node:fs';
 import { dirname, join, resolve } from 'node:path';
+import { env } from 'node:process';
 import { fileURLToPath } from 'node:url';
 
 import chalk from 'chalk';
@@ -171,7 +172,7 @@ export class Configuration {
     }
     if (isCFEnvironment() === true) {
       delete uiServerConfiguration.options?.host;
-      uiServerConfiguration.options!.port = parseInt(process.env.PORT!);
+      uiServerConfiguration.options!.port = parseInt(env.PORT!);
     }
     return uiServerConfiguration;
   }