Merge dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-6.9.0 into combined...
[e-mobility-charging-stations-simulator.git] / ui / web / start.js
index ed6e3e01ff65c0f81696ba9805a5b622f8c5169c..9b18156cffee67d340d172bfac4753c40fd9f3a6 100644 (file)
@@ -1,10 +1,11 @@
-const path = require('path'),
+const http = require('node:http'),
+  path = require('node:path'),
+  { env } = require('node:process'),
   finalhandler = require('finalhandler'),
-  http = require('http'),
   serveStatic = require('serve-static');
 
-const isCFEnvironment = process.env.VCAP_APPLICATION !== undefined,
-  PORT = isCFEnvironment ? parseInt(process.env.PORT) : 3030,
+const isCFEnvironment = env.VCAP_APPLICATION !== undefined,
+  PORT = isCFEnvironment ? parseInt(env.PORT) : 3030,
   uiPath = path.join(__dirname, './dist');
 
 const serve = serveStatic(uiPath);