show missing variables for stg

This commit is contained in:
OxSaitama 2023-09-20 19:19:28 +02:00
parent abad89ca61
commit 29fd625436

View File

@ -115,7 +115,7 @@ export class BackendVariables {
try {
await validateOrReject(this, validationOptions);
} catch (error: any) {
if (process.env["ENV"] === "dev") {
if (process.env["ENV"] === "dev" || process.env["ENV"] === 'stg') {
throw error;
}
throw new Error("Some env variables are required!");