import { z } from 'zod';

const envSchema = z.object({
  PORT: z.string().default('4004'),
  PLATFORM_SERVICE_URL: z.string().url().default('http://localhost:4003'),
  COSMOS_ENDPOINT: z.string().url().default('http://localhost:8081'),
  COSMOS_KEY: z.string().default('mock-cosmos-key'),
  COSMOS_DATABASE: z.string().default('bytelyst-platform'),
  JWT_SECRET: z.string().default('dev-jwt-secret'),
  CSRF_SECRET: z.string().default('dev-csrf-secret'),
});

export const config = envSchema.parse(process.env);
export const productId = 'devops-dashboard';
export const productName = 'ByteLyst DevOps';
