import dotenv from 'dotenv'; dotenv.config(); export function getEnvVar(key: string): string { const value = process.env[key]; console.log(`${key}: ${value}`); if (!value) { throw new Error(`Environment variable ${key} is not set`); } return value; }