♻️ Extracted web server and websocket
initializacion and added helper to get NODE_ENV value
This commit is contained in:
9
src/backend/helpers/util.ts
Normal file
9
src/backend/helpers/util.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
const environment = process.env.NODE_ENV;
|
||||
const isDevelopment = environment === "development";
|
||||
const isProduction = environment === "production";
|
||||
|
||||
export {
|
||||
environment,
|
||||
isDevelopment,
|
||||
isProduction
|
||||
};
|
Reference in New Issue
Block a user