- Deleted `@kit/baselime` package and its related files. - Removed Baselime service registration from monitoring in API services. - Cleared `registerInstrumentation`, hooks, provider components, and server utilities associated with Baselime. - Updated package dependencies to exclude `@kit/baselime`.
19 lines
440 B
TypeScript
19 lines
440 B
TypeScript
import { z } from 'zod';
|
|
|
|
const MONITORING_PROVIDERS = [
|
|
'sentry',
|
|
'',
|
|
// Add more providers here
|
|
] as const;
|
|
|
|
export const MONITORING_PROVIDER = z
|
|
.enum(MONITORING_PROVIDERS)
|
|
.optional()
|
|
.transform((value) => value || undefined);
|
|
|
|
export type MonitoringProvider = z.infer<typeof MONITORING_PROVIDER>;
|
|
|
|
export function getMonitoringProvider() {
|
|
return MONITORING_PROVIDER.parse(process.env.NEXT_PUBLIC_MONITORING_PROVIDER);
|
|
}
|