fix: ensure the ATG will start from its saved status
[e-mobility-charging-stations-simulator.git] / src / utils / Utils.ts
index 808ef380d170b2a5a11acfeaa96e7d23b49e1040..6a3d30fee9bbcebdc264a6239dfaec8601e1c5eb 100644 (file)
@@ -1,4 +1,5 @@
 import { randomBytes, randomInt, randomUUID, webcrypto } from 'node:crypto';
+import { env } from 'node:process';
 import { inspect } from 'node:util';
 
 import {
@@ -260,7 +261,7 @@ export const hasOwnProp = (object: unknown, property: PropertyKey): boolean => {
 };
 
 export const isCFEnvironment = (): boolean => {
-  return !isNullOrUndefined(process.env.VCAP_APPLICATION);
+  return !isNullOrUndefined(env.VCAP_APPLICATION);
 };
 
 export const isIterable = <T>(obj: T): boolean => {