Skip to content

Commit 18b3e65

Browse files
committed
refactor: Add stage env
1 parent 51eba23 commit 18b3e65

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/common/helper/env.validation.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ import {
99
} from 'class-validator';
1010

1111
const development = 'development';
12+
const stage = 'stage';
1213
const production = 'production';
1314
const test = 'test';
1415

1516
const nodeEnvironment = {
1617
[development]: development,
18+
[stage]: stage,
1719
[production]: production,
1820
[test]: test,
1921
};
@@ -22,6 +24,9 @@ export class EnvironmentVariables {
2224
@IsEnum(nodeEnvironment)
2325
NODE_ENV: keyof typeof nodeEnvironment;
2426

27+
@IsString()
28+
DB_HOST: string;
29+
2530
@IsString()
2631
DB_NAME: string;
2732

0 commit comments

Comments
 (0)