Skip to content

Commit 038aec3

Browse files
committed
fix: fix default envs values
1 parent a59b4b0 commit 038aec3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/common/config/env.validation.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class EnvironmentVariables {
1818
@IsNumber()
1919
@Min(1)
2020
@Transform(toNumber({ defaultValue: 3000 }))
21-
PORT: number = undefined;
21+
PORT: number = 3000;
2222

2323
@IsOptional()
2424
@IsString()
@@ -49,16 +49,16 @@ export class EnvironmentVariables {
4949
@IsOptional()
5050
@IsEnum(LogLevel)
5151
@Transform(({ value }) => value || LogLevel.info)
52-
LOG_LEVEL: LogLevel = undefined;
52+
LOG_LEVEL: LogLevel = null;
5353

5454
@IsOptional()
5555
@IsEnum(LogFormat)
5656
@Transform(({ value }) => value || LogFormat.json)
57-
LOG_FORMAT: LogFormat = undefined;
57+
LOG_FORMAT: LogFormat = null;
5858

5959
@IsOptional()
6060
@IsString()
61-
JOB_INTERVAL_VALIDATORS = undefined;
61+
JOB_INTERVAL_VALIDATORS = null;
6262

6363
@IsOptional()
6464
@IsString()
@@ -71,16 +71,16 @@ export class EnvironmentVariables {
7171
@IsArray()
7272
@ArrayMinSize(1)
7373
@Transform(({ value }) => value.split(','))
74-
CL_API_URLS: string[] = undefined;
74+
CL_API_URLS: string[] = null;
7575

7676
@IsArray()
7777
@ArrayMinSize(1)
7878
@Transform(({ value }) => value.split(','))
79-
EL_RPC_URLS: string[] = undefined;
79+
EL_RPC_URLS: string[] = null;
8080

8181
@IsNumber()
8282
@Transform(({ value }) => Number(value))
83-
CHAIN_ID: number = undefined;
83+
CHAIN_ID: number = null;
8484
}
8585
export const ENV_KEYS = Object.keys(new EnvironmentVariables());
8686

0 commit comments

Comments
 (0)