diff --git a/api/_helpers/environment.js b/api/_helpers/environment.js index ccc573f..f544224 100644 --- a/api/_helpers/environment.js +++ b/api/_helpers/environment.js @@ -3,7 +3,7 @@ import * as dotenv from "dotenv"; const result = dotenv.config().parsed; export let environment; -if (!("error" in result)) { +if (!!result.error) { environment = result.parsed; environment.serverConfig = JSON.parse(result.parsed.SERVER_CONFIG);