Fixed env vars

This commit is contained in:
Vins 2023-07-25 11:02:08 +02:00
parent 4668fcb88f
commit 69585af4db

View File

@ -31,8 +31,6 @@ export class BackendVariables {
@IsNotEmpty()
public readonly APP_ROOT_URL!: string;
public readonly NODE_ENV = process.env.NODE_ENV;
@IsNotEmpty()
public readonly IDNOT_CONNEXION_URL!: string;
@ -97,7 +95,7 @@ export class BackendVariables {
try {
await validateOrReject(this, validationOptions);
} catch (error: any) {
if (process.env["NODE_ENV"] === "development") {
if (process.env["ENV"] === "dev") {
throw error;
}
console.error(error);