Coalesce quota refreshes and consolidate shared helpers
Some checks failed
Deploy Sokko G / deploy (push) Failing after 2s
Some checks failed
Deploy Sokko G / deploy (push) Failing after 2s
This commit is contained in:
parent
a4cf633ab4
commit
748415082b
19 changed files with 216 additions and 64 deletions
10
scripts/load-project-env.mjs
Normal file
10
scripts/load-project-env.mjs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// 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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue