Skip to content

Commit 25d3977

Browse files
committed
fix: enforce non-empty values for METRICS_USER and METRICS_PASS in config schema
1 parent dd160fb commit 25d3977

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/config/app-config/config.schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ export const configSchema = z
5858
.refine((val) => val === 'true' || val === 'false', 'Must be "true" or "false".'),
5959
SCALAR_PATH: z.string().default('/scalar'),
6060
SWAGGER_PATH: z.string().default('/docs'),
61-
METRICS_USER: z.string(),
62-
METRICS_PASS: z.string(),
61+
METRICS_USER: z.string().min(1, { message: 'METRICS_USER cannot be empty' }),
62+
METRICS_PASS: z.string().min(1, { message: 'METRICS_PASS cannot be empty' }),
6363
SUB_PUBLIC_DOMAIN: z.string(),
6464
WEBHOOK_ENABLED: z
6565
.string()

0 commit comments

Comments
 (0)