1
0

♻️ Extracted web server and websocket

initializacion and added helper to get NODE_ENV value
This commit is contained in:
2021-06-16 23:29:37 +02:00
parent 00f753b761
commit 42bd583a43
3 changed files with 114 additions and 72 deletions

View File

@@ -0,0 +1,9 @@
const environment = process.env.NODE_ENV;
const isDevelopment = environment === "development";
const isProduction = environment === "production";
export {
environment,
isDevelopment,
isProduction
};