Fixed env vars
This commit is contained in:
parent
4668fcb88f
commit
69585af4db
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user