import fs from "node:fs"; // Tiny .env loader — real values never override ones already in the environment. if (fs.existsSync(".env")) { for (const line of fs.readFileSync(".env", "utf8").split("\n")) { const match = line.match(/^([A-Z_][A-Z0-9_]*)=(.*)$/); if (match && process.env[match[1]] === undefined) { process.env[match[1]] = match[2].trim(); } } }