Allow empty monitoring provider variable for retro-compatibility with previous env variables settings.

This commit is contained in:
gbuomprisco
2025-02-18 21:46:17 +07:00
parent 7ec22cc8e5
commit cdf7cc6f00

View File

@@ -1,6 +1,9 @@
import { z } from 'zod';
export const MONITORING_PROVIDER = z.enum(['baselime', 'sentry']).optional();
export const MONITORING_PROVIDER = z
.enum(['baselime', 'sentry', ''])
.optional()
.transform((value) => value || undefined);
export type MonitoringProvider = z.infer<typeof MONITORING_PROVIDER>;