We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51eba23 commit 18b3e65Copy full SHA for 18b3e65
src/common/helper/env.validation.ts
@@ -9,11 +9,13 @@ import {
9
} from 'class-validator';
10
11
const development = 'development';
12
+const stage = 'stage';
13
const production = 'production';
14
const test = 'test';
15
16
const nodeEnvironment = {
17
[development]: development,
18
+ [stage]: stage,
19
[production]: production,
20
[test]: test,
21
};
@@ -22,6 +24,9 @@ export class EnvironmentVariables {
22
24
@IsEnum(nodeEnvironment)
23
25
NODE_ENV: keyof typeof nodeEnvironment;
26
27
+ @IsString()
28
+ DB_HOST: string;
29
+
30
@IsString()
31
DB_NAME: string;
32
0 commit comments