sokko-g/scripts/load-project-env.mjs
Shinuwa 748415082b
Some checks failed
Deploy Sokko G / deploy (push) Failing after 2s
Coalesce quota refreshes and consolidate shared helpers
2026-09-10 20:03:57 +02:00

10 lines
272 B
JavaScript

// Rôle : charge le fichier .env facultatif avec le parseur natif de Node.
import { loadEnvFile } from "node:process";
export function loadProjectEnv(file = ".env") {
try {
loadEnvFile(file);
} catch (error) {
if (error.code !== "ENOENT") throw error;
}
}