diff --git a/src/backend/helpers/util.ts b/src/backend/helpers/util.ts index b7c721b..16d0422 100644 --- a/src/backend/helpers/util.ts +++ b/src/backend/helpers/util.ts @@ -1,9 +1,10 @@ +import { Environment } from "../../enums/Environment"; + const environment = process.env.NODE_ENV; -const isDevelopment = environment === "development"; -const isProduction = environment === "production"; +const isDevelopment = environment === Environment.development; +const isProduction = environment === Environment.production; export { - environment, isDevelopment, isProduction }; \ No newline at end of file diff --git a/src/enums/Environment.ts b/src/enums/Environment.ts new file mode 100644 index 0000000..3df7117 --- /dev/null +++ b/src/enums/Environment.ts @@ -0,0 +1,4 @@ +export enum Environment { + development = "development", + production = "production" +} \ No newline at end of file