import { z } from "zod";

const envSchema = z.object({
  CORS_ORIGIN: z.string().default("*"),
  DATABASE_URL: z.string(),
  JWT_SECRET: z.string(),
  NODE_ENV: z.enum(["development", "production", "test"]).default("development"),
  PORT: z.string().transform(Number).default("3000"),
});

export const env = envSchema.parse(process.env);
