export function getEnv(name: string, fallback?: string): string {
  const v = process.env[name] ?? (import.meta.env ? import.meta.env[name] : undefined) ?? fallback;
  if (v === undefined) throw new Error(`Variabile d'ambiente mancante: ${name}`);
  return v;
}
